### Question:
RestApplication extends Application { @Override public Set<Class<?>> getClasses() { Set<Class<?>> clazzes = new HashSet<Class<?>>(); boolean runGrouperWsScim = GrouperHibernateConfig.retrieveConfig().propertyValueBoolean("grouper.is.scim", false); if (runGrouperWsScim) { clazzes.addAll(ScimResourceHelper.getScimClassesToLoad()); clazzes.addAll(ScimResourceHelper.getSwaggerClassesToLoad()); clazzes.add(MembershipRestResourceImpl.class); } return clazzes; }  @Override Set<Class<?>> getClasses();  }### Answer:
@Test public void classesAreLoadedWhenGrouperWsScimIsSetToTrueInGrouperHibernateProperties() { GrouperConfig.retrieveConfig().propertiesOverrideMap().put("grouper.is.scim", "true"); RestApplication restApplication = new RestApplication(); Set<Class<?>> classes = restApplication.getClasses(); assertThat(classes.size(), Matchers.greaterThan(0)); }
@Test public void noClassesAreLoadedWhenGrouperWsScimIsSetToFalseInGrouperHibernateProperties() { GrouperConfig.retrieveConfig().propertiesOverrideMap().put("grouper.is.scim", "false"); RestApplication restApplication = new RestApplication(); Set<Class<?>> classes = restApplication.getClasses(); assertThat(classes.size(), Matchers.equalTo(0)); }