}
@Test
public void testRepositoryResource() {
RepositoryResource repo = new RepositoryResource();
repo.setId("createTestRepo");
repo.setRepoType("hosted");
repo.setName("Create Test Repo");
repo.setFormat("maven2");
repo.setWritePolicy(RepositoryWritePolicy.ALLOW_WRITE.name());
repo.setBrowseable(true);
repo.setIndexable(true);
repo.setNotFoundCacheTTL(1440);
repo.setRepoPolicy(RepositoryPolicy.RELEASE.name());
repo.setDownloadRemoteIndexes(true);
repo.setChecksumPolicy("IGNORE");
repo.setContentResourceURI("contentResourceURI");
repo.setDefaultLocalStorageUrl("defaultlocalstorage");
repo.setExposed(true);
repo.setOverrideLocalStorageUrl("overridelocalstorage");
repo.setProvider("provider");
repo.setProviderRole("providerRole");
RepositoryResourceRemoteStorage remoteStorage = new RepositoryResourceRemoteStorage();
remoteStorage.setRemoteStorageUrl("remoteStorageUrl");
AuthenticationSettings auth = new AuthenticationSettings();
auth.setNtlmDomain("ntlmdomain");
auth.setNtlmHost("ntmlhost");
auth.setPassword("password");
auth.setUsername("username");
remoteStorage.setAuthentication(auth);
RemoteConnectionSettings connection = new RemoteConnectionSettings();
connection.setConnectionTimeout(50);
connection.setQueryString("querystring");
connection.setRetrievalRetryCount(5);
connection.setUserAgentString("useragent");
remoteStorage.setConnectionSettings(connection);
repo.setRemoteStorage(remoteStorage);
RepositoryResourceResponse resourceResponse = new RepositoryResourceResponse();
resourceResponse.setData(repo);
this.marshalUnmarchalThenCompare(resourceResponse);