### Question:
ResourceUtils { public List<NewResourceHandler> getOrderedNewResourceHandlers() { return getNewResourceHandlers(NEW_RESOURCE_HANDLER_COMPARATOR_BY_ORDER); } @Inject  ResourceUtils(final Classifier classifier,
                         final ManagedInstance<NewResourceHandler> newResourceHandlers); String getBaseFileName(final Path path); static boolean isProjectHandler(final NewResourceHandler handler); static boolean isDefaultProjectHandler(final NewResourceHandler handler); static boolean isPackageHandler(final NewResourceHandler handler); static boolean isUploadHandler(final NewResourceHandler handler); List<NewResourceHandler> getOrderedNewResourceHandlers(); List<NewResourceHandler> getAlphabeticallyOrderedNewResourceHandlers(); static final Comparator<NewResourceHandler> NEW_RESOURCE_HANDLER_COMPARATOR_BY_ORDER; static final Comparator<NewResourceHandler> NEW_RESOURCE_HANDLER_COMPARATOR_BY_ALPHABETICAL_ORDER; }### Answer:
@Test public void getOrderedNewResourceHandlersTest() { final List<NewResourceHandler> orderedNewResourceHandlers = resourceUtils.getOrderedNewResourceHandlers(); assertEquals("B", orderedNewResourceHandlers.get(0).getDescription()); assertEquals("A", orderedNewResourceHandlers.get(1).getDescription()); assertEquals("b", orderedNewResourceHandlers.get(2).getDescription()); assertEquals("c", orderedNewResourceHandlers.get(3).getDescription()); assertEquals("C", orderedNewResourceHandlers.get(4).getDescription()); assertEquals("a", orderedNewResourceHandlers.get(5).getDescription()); }