mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestAssetNamespace.java
@Test
    public final void testExecuteCommandSetPosition() throws IOException, InterruptedException
    {
        Coordinates coord = Coordinates.newBuilder().
                setLatitude(LatitudeWgsDegrees.newBuilder().setValue(70.0).build()).
                setLongitude(LongitudeWgsDegrees.newBuilder().setValue(95.6).build()).build();
        
        SetPositionCommand command =  SetPositionCommand.newBuilder().
                setBase(BaseTypesGen.Command.getDefaultInstance()).setLocation(coord).build();
        
        ExecuteCommandResponseData executeCommandResponse = AssetNamespaceUtils.
                executeCommand(command, 
                        CommandTypeEnumConverter.convertJavaEnumToProto(CommandTypeEnum.SET_POSITION_COMMAND), 
                        testUuid, 
                        socket);
        
        assertThat(executeCommandResponse.getResponseType(), is(
                CommandResponseEnumConverter.convertJavaEnumToProto(CommandResponseEnum.SET_POSITION_RESPONSE)));
        assertThat(executeCommandResponse.getUuid(), is(testUuid));
    }
/**
     * Verifies ability to execute a command remotely that set the position of an asset which does NOT have GPS 
     * support.
     * 
     * Test a set command.
     */
Verifies ability to execute a command remotely that set the position of an asset which does NOT have GPS
support.

Test a set command.
Verifies ability to execute a command remotely that set the position of an asset which does NOT have GPS support . Test a set command .
@Test
    public final void testExecuteCommandSetPosition() throws IOException, InterruptedException
    {
        Coordinates coord = Coordinates.newBuilder().
                setLatitude(LatitudeWgsDegrees.newBuilder().setValue(70.0).build()).
                setLongitude(LongitudeWgsDegrees.newBuilder().setValue(95.6).build()).build();
        SetPositionCommand command =  SetPositionCommand.newBuilder().
                setBase(BaseTypesGen.Command.getDefaultInstance()).setLocation(coord).build();
        ExecuteCommandResponseData executeCommandResponse = AssetNamespaceUtils.
                executeCommand(command, 
                        CommandTypeEnumConverter.convertJavaEnumToProto(CommandTypeEnum.SET_POSITION_COMMAND), 
                        testUuid, 
                        socket);
        assertThat(executeCommandResponse.getResponseType(), is(
                CommandResponseEnumConverter.convertJavaEnumToProto(CommandResponseEnum.SET_POSITION_RESPONSE)));
        assertThat(executeCommandResponse.getUuid(), is(testUuid));
    }
@ Test public final void testExecuteCommandSetPosition ( ) throws IOException , InterruptedException { Coordinates coord = Coordinates . newBuilder ( ) . setLatitude ( LatitudeWgsDegrees . newBuilder ( ) . setValue ( 70.0 ) . build ( ) ) . setLongitude ( LongitudeWgsDegrees . newBuilder ( ) . setValue ( 95.6 ) . build ( ) ) . build ( ) ; SetPositionCommand command = SetPositionCommand . newBuilder ( ) . setBase ( BaseTypesGen . Command . getDefaultInstance ( ) ) . setLocation ( coord ) . build ( ) ; ExecuteCommandResponseData executeCommandResponse = AssetNamespaceUtils . executeCommand ( command , CommandTypeEnumConverter . convertJavaEnumToProto ( CommandTypeEnum . SET_POSITION_COMMAND ) , testUuid , socket ) ; assertThat ( executeCommandResponse . getResponseType ( ) , is ( CommandResponseEnumConverter . convertJavaEnumToProto ( CommandResponseEnum . SET_POSITION_RESPONSE ) ) ) ; assertThat ( executeCommandResponse . getUuid ( ) , is ( testUuid ) ) ; }
Verifies ability to execute a command remotely that set the position of an asset which does NOT have GPS
 support.
Verifies ability to execute a command remotely that set the position of an asset which does NOT have GPS support .