@Test
public void shouldGetConnection() throws Exception {

    createConnection(CONNECTION_NAME);
    // get
    Properties settings = _uriBuilder.createSettings(SettingNames.CONNECTION_NAME, CONNECTION_NAME);
    _uriBuilder.addSetting(settings, SettingNames.PARENT_PATH, _uriBuilder.workspaceConnectionsUri());
    URI uri = _uriBuilder.connectionUri(LinkType.SELF, settings);
    ClientRequest request = request(uri, MediaType.APPLICATION_JSON_TYPE);
    ClientResponse<String> response = request.get(String.class);
    final String entity = response.getEntity();
    assertThat(entity, is(notNullValue()));
    System.out.println("Response:\n" + entity);
    RestConnection connection = KomodoJsonMarshaller.unmarshall(entity, RestConnection.class);
    assertNotNull(connection);
    
    assertEquals(connection.getId(), CONNECTION_NAME);
}