UploadManagerImpl extends ComponentSupport implements UploadManager { @Override public Collection<UploadDefinition> getAvailableDefinitions() { return uploadDefinitions; } @Inject  UploadManagerImpl(final Map<String, UploadHandler> uploadHandlers,
                           final UploadComponentMultipartHelper multipartHelper,
                           final Set<ComponentUploadExtension> componentsUploadExtensions); @Override Collection<UploadDefinition> getAvailableDefinitions(); @Override UploadResponse handle(final Repository repository, final HttpServletRequest request); @Override UploadDefinition getByFormat(final String format); @Override Content handle(
      final Repository repository, final File content, final String path);  }
@Test public void testGetAvailable() { assertThat(underTest.getAvailableDefinitions(), contains(uploadA, uploadB)); }