### Question:
ResourcesHolder { public void remove(Class<? extends SortedResource> clazz) { logger.info("remove {}", clazz.getSimpleName()); SortedResource resource = resources.remove(clazz); if (resource != null) { logger.info("close {}", resource); resource.close(); } } ResourcesHolder(); void remove(Class<? extends SortedResource> clazz); void put(Class<T> clazz, T resource); T get(Class<T> clazz); void close(); static final String RESOURCES; }### Answer:
@Test public void removeShouldNoopWhenNoResource() { testee.remove(TestResource.class); }