@Test
public void shouldGetConnections() throws Exception {

    createConnection(CONNECTION_NAME);
    // get
    URI uri = _uriBuilder.workspaceConnectionsUri();
    ClientRequest request = request(uri, MediaType.APPLICATION_JSON_TYPE);
    ClientResponse<String> response = request.get(String.class);
    assertNotNull(response.getEntity());
    final String entities = response.getEntity();
    assertThat(entities, is(notNullValue()));
    // System.out.println("Response:\n" + entities);
    // make sure the Dataservice JSON document is returned for each dataservice
    RestConnection[] connection = KomodoJsonMarshaller.unmarshallArray(entities, RestConnection[].class);
    assertEquals(1, connection.length);
    RestConnection mySource = connection[0];
    assertNotNull(mySource.getId());
    assertTrue(CONNECTION_NAME.equals(mySource.getId()));
    assertNotNull(mySource.getDataPath());
    assertNotNull(mySource.getkType());
}