@Test
public void shouldGetRepositories() throws Exception {

    Repositories repositories = REST_CLIENT.getRepositories();
    assertNotNull(repositories);
    Collection<Repositories.Repository> repositoryList = repositories.getRepositories();
    assertEquals(1, repositoryList.size());
    Repositories.Repository repository = repositories.iterator().next();
    assertEquals("repo", repository.getName());
    Map<String, Object> metadata = repository.getMetadata();
    assertNotNull(metadata);
    assertFalse(metadata.isEmpty());
}