expect(env.getRequiredProperty(DataSources.DATABASE)).andReturn("jdbc:mysql://local");
expect(env.getRequiredProperty("application.ns", String[].class)).andReturn(
new String[]{JpaModuleTest.class.getPackage().getName() });
expect(env.getProperty(JpaModule.DB_SCHEMA, "update")).andReturn(mode);
ReflectionUtils.doWithFields(AvailableSettings.class, new FieldCallback() {
@Override
public void doWith(final Field field) throws IllegalArgumentException,
IllegalAccessException {
String propertyName = (String) field.get(null);
expect(env.getProperty(propertyName)).andReturn(null);