IrodsStorageProvider implements StorageProvider { @Override public StorageProviderType getStorageProviderType() { return StorageProviderType.IRODS; } IrodsStorageProvider(String username,
                                String password,
                                Map<String, String> options); @Override StorageProviderType getStorageProviderType(); @Override Iterator<String> getSpaces(); @Override Iterator<String> getSpaceContents(String spaceId, String prefix); @Override @SuppressWarnings("empty-statement") List<String> getSpaceContentsChunked(String spaceId,
                                                String prefix,
                                                long maxResults,
                                                String marker); @Override void createSpace(String spaceId); @Override void deleteSpace(String spaceId); @Override Map<String, String> getSpaceProperties(String spaceId); @Override Map<String, AclType> getSpaceACLs(String spaceId); @Override void setSpaceACLs(String spaceId, Map<String, AclType> spaceACLs); @Override String addContent(String spaceId,
                             String contentId,
                             String contentMimeType,
                             Map<String, String> userProperties,
                             long contentSize,
                             String contentChecksum,
                             InputStream content); @Override String copyContent(String sourceSpaceId,
                              String sourceContentId,
                              String destSpaceId,
                              String destContentId); @Override RetrievedContent getContent(String spaceId, String contentId); @Override RetrievedContent getContent(String spaceId, String contentId, String range); @Override void deleteContent(String spaceId, String contentId); @Override void setContentProperties(String spaceId,
                                     String contentId,
                                     Map<String, String> contentProperties); @Override Map<String, String> getContentProperties(String spaceId,
                                                    String contentId);  }
@Test public void testGetStorageProviderType() { Map<String, String> options = new HashMap<>(); options.put(BASE_DIRECTORY.name(), "base-directory"); options.put(HOST.name(), "host"); options.put(PORT.name(), "1234"); options.put(RESOURCE.name(), "resource"); options.put(ZONE.name(), "zone"); IrodsStorageProvider provider = new IrodsStorageProvider("accessKey", "secretKey", options); assertEquals(StorageProviderType.IRODS, provider.getStorageProviderType()); }