### Question:
ResourceBundleWildcard { public void setKeyRegex( String keyRegex ) { this.keyRegex = keyRegex; }  String getKeyRegex(); void setKeyRegex( String keyRegex );  }### Answer:
@Test public void testSetKeyRegex() throws Exception { ResourceBundleWildcard resourceBundleWildcard = new ResourceBundleWildcard(); String regex = "test-regex"; resourceBundleWildcard.setKeyRegex( regex ); assertEquals( regex, resourceBundleWildcard.getKeyRegex() ); }