private void assertLocalConfigurationWasApplied(final ClassWithIPerson classWithPerson) { assertTrue( "must be configured to be instance of Person", classWithPerson.getPerson() instanceof Person); assertNotNull("instance must be generated", classWithPerson.getPerson() instanceof Person); }