### Question:
RaptorSecurityConfig { @Config("raptor.security") public RaptorSecurityConfig setSecuritySystem(String securitySystem) { this.securitySystem = securitySystem; return this; }  @NotNull @Pattern(regexp = "none|file|read-only", message = "must be either none, file or read-only") String getSecuritySystem(); @Config("raptor.security") RaptorSecurityConfig setSecuritySystem(String securitySystem);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(RaptorSecurityConfig.class) .setSecuritySystem("none")); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("raptor.security", "read-only") .build(); RaptorSecurityConfig expected = new RaptorSecurityConfig() .setSecuritySystem("read-only"); assertFullMapping(properties, expected); }