mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestAssetDirectoryServiceNamespace.java
@Test
    public final void testCreateAssetWithProps() throws UnknownHostException, IOException
    {
        final Map<String, Object> props = new HashMap<>();
        props.put(ExampleRequiredPropAssetAttributes.CONFIG_PROP_HOSTNAME, "127.0.0.1");
        props.put(ExampleRequiredPropAssetAttributes.CONFIG_PROP_PORT_NUM, 1337);
        FactoryObjectInfo info = AssetNamespaceUtils.createAsset(socket, ExampleRequiredPropAsset.class.getName(), 
                "createAsset", props).getInfo();
        assertThat(info.getUuid(), is(notNullValue()));
        assertThat("Pid should not be empty", info.getPid().isEmpty(), is(false));
    }
/**
     * Ensures that a valid UUID and PID is returned after the create asset request was sent with configuration 
     * properties specified.
     */
Ensures that a valid UUID and PID is returned after the create asset request was sent with configuration
properties specified.
Ensures that a valid UUID and PID is returned after the create asset request was sent with configuration properties specified .
@Test
    public final void testCreateAssetWithProps() throws UnknownHostException, IOException
    {
        final Map<String, Object> props = new HashMap<>();
        props.put(ExampleRequiredPropAssetAttributes.CONFIG_PROP_HOSTNAME, "127.0.0.1");
        props.put(ExampleRequiredPropAssetAttributes.CONFIG_PROP_PORT_NUM, 1337);
        FactoryObjectInfo info = AssetNamespaceUtils.createAsset(socket, ExampleRequiredPropAsset.class.getName(), 
                "createAsset", props).getInfo();
        assertThat(info.getUuid(), is(notNullValue()));
        assertThat("Pid should not be empty", info.getPid().isEmpty(), is(false));
    }
@ Test public final void testCreateAssetWithProps ( ) throws UnknownHostException , IOException { final Map < String , Object > props = new HashMap < > ( ) ; props . put ( ExampleRequiredPropAssetAttributes . CONFIG_PROP_HOSTNAME , "127.0.0.1" ) ; props . put ( ExampleRequiredPropAssetAttributes . CONFIG_PROP_PORT_NUM , 1337 ) ; FactoryObjectInfo info = AssetNamespaceUtils . createAsset ( socket , ExampleRequiredPropAsset . class . getName ( ) , "createAsset" , props ) . getInfo ( ) ; assertThat ( info . getUuid ( ) , is ( notNullValue ( ) ) ) ; assertThat ( "Pid should not be empty" , info . getPid ( ) . isEmpty ( ) , is ( false ) ) ; }
Ensures that a valid UUID and PID is returned after the create asset request was sent with configuration
 properties specified.
Ensures that a valid UUID and PID is returned after the create asset request was sent with configuration properties specified .