{
@Test
public void extractPropertyNameFromAttribute() throws Exception
{
Employee expected = new Employee( "John", "Doe" );
Employee actual = newLoader( new FromXmlRulesModule()
{
@Override
protected void loadRules()
{
loadXMLRules( getClass().getResource( "extractPropertyNameFromAttribute-rules.xml" ) );
}
} )
.newDigester()
.parse( getClass().getResource( "../extractPropertyNameFromAttribute.xml" ) );
assertEquals( expected.getFirstName(), actual.getFirstName() );
assertEquals( expected.getLastName(), actual.getLastName() );
}