}
}
@Test
public void checkNothingCreatedForPrivate() throws Exception {
PropertyEnhancerModel model = new PropertyEnhancerModel();
try {
Method setter = model.getClass().getMethod("getPrivateText", String.class);
fail("Expected no getter method");
} catch (NoSuchMethodException e) {
// expected
}
try {
Method setter = model.getClass().getMethod("setPrivateText", String.class);
fail("Expected no setter method");
} catch (NoSuchMethodException e) {
// expected
}
}