} catch (NamingException e) {}
// string form
resultStr = ctx.composeName("host1/file1.html", "/example.com");
assertEquals("/host1.example.com/file1.html", resultStr);
resultStr = ctx.composeName("host1", "example.com");
assertEquals("host1.example.com", resultStr);
resultStr = ctx.composeName("host1/mamba", "example.com");
assertEquals("host1.example.com/mamba", resultStr);
resultStr = ctx.composeName("host1.subdomain", "schema17:/example.com");
assertEquals("schema17:/host1.subdomain.example.com", resultStr);