### Question:
DefaultResourceManager implements ResourceManager { public final void removeResourceResolver(ResourceResolver resolver) { if (registeredResolvers.contains(resolver)) { registeredResolvers.remove(resolver); } } DefaultResourceManager();  DefaultResourceManager(ResourceResolver resolver);  DefaultResourceManager(List<? extends ResourceResolver> resolvers); final T resolveResource(String name, Class<T> type); final T resolveResource(String name, Class<T> type, List<ResourceResolver> resolvers); final InputStream getResourceAsStream(String name); final void addResourceResolver(ResourceResolver resolver); final void addResourceResolvers(Collection<? extends ResourceResolver> resolvers); final void removeResourceResolver(ResourceResolver resolver); final List<ResourceResolver> getResourceResolvers();  }### Answer:
@Test public void testRemoveResolver() { manager.removeResourceResolver(resolvers[1]); DummyResolver[] expected = new DummyResolver[resolvers.length - 1]; expected[0] = resolvers[0]; System.arraycopy(resolvers, 2, expected, 1, expected.length - 1); assertArrayEquals(expected, getResolvers(manager)); checkCallOrder(expected); assertEquals(-1, resolvers[1].order); }