@Test
 public void testDefaults() {
   ConfigAssertions.assertRecordedDefaults(
       ConfigAssertions.recordDefaults(JmxHttpRpcConfig.class)
           .setUsername(null)
           .setPassword(null));
 }
 @Test
 public void testDefaults() {
   ConfigAssertions.assertRecordedDefaults(
       ConfigAssertions.recordDefaults(JCloudsConfig.class)
           .setSecret(null)
           .setLocation(null)
           .setUser(null)
           .setDefaultImageId(null)
           .setApi(null)
           .setName(null)
           .setAwsVpcSubnetId(null));
 }
  @Test
  public void testExplicitPropertyMappings() {
    Map<String, String> properties =
        new ImmutableMap.Builder<String, String>()
            .put("jmx-http-rpc.username", "user")
            .put("jmx-http-rpc.password", "pass")
            .build();

    JmxHttpRpcConfig expected = new JmxHttpRpcConfig().setUsername("user").setPassword("pass");

    ConfigAssertions.assertFullMapping(properties, expected);
  }
 @Test
 public void testExplicitPropertyMappings() {
   ConfigAssertions.assertFullMapping(
       ImmutableMap.<String, String>builder()
           .put("location", "http://localhost:8774")
           .put("user", "user")
           .put("secret", "secret")
           .put("default-image-id", "default-image-id")
           .put("api", "api")
           .put("name", "name")
           .put("aws-vpc-subnet-id", "aws-vpc-subnet-id")
           .build(),
       new JCloudsConfig()
           .setLocation("http://localhost:8774")
           .setUser("user")
           .setSecret("secret")
           .setDefaultImageId("default-image-id")
           .setApi("api")
           .setName("name")
           .setAwsVpcSubnetId("aws-vpc-subnet-id"));
 }