EverrestApplication extends Application { @Override public Set<Object> getSingletons() { return singletons; } EverrestApplication(); void addClass(Class<?> clazz); void addSingleton(Object singleton); void addFactory(ObjectFactory<? extends ObjectModel> factory); void addResource(String uriPattern, Class<?> resourceClass); void addResource(String uriPattern, Object resource); Map<String, Class<?>> getResourceClasses(); Map<String, Object> getResourceSingletons(); Set<ObjectFactory<? extends ObjectModel>> getFactories(); @Override Set<Class<?>> getClasses(); @Override Set<Object> getSingletons(); void addApplication(Application application);  }
@Test public void returnsEmptySetOfSingletonsNeverNull() throws Exception { assertTrue(everrestApplication.getSingletons().isEmpty()); }