@Test
public void shouldGetVdbModelSourcesIncludeReferenceForTranslator() throws Exception {

    loadVdbs();
    // get
    Properties settings = _uriBuilder.createSettings(SettingNames.VDB_NAME, TestUtilities.TWEET_EXAMPLE_VDB_NAME);
    _uriBuilder.addSetting(settings, SettingNames.VDB_PARENT_PATH, _uriBuilder.workspaceVdbsUri());
    _uriBuilder.addSetting(settings, SettingNames.MODEL_NAME, "twitter");
    URI uri = _uriBuilder.vdbModelUri(LinkType.SOURCES, settings);
    ClientRequest request = request(uri, MediaType.APPLICATION_JSON_TYPE);
    ClientResponse<String> response = request.get(String.class);
    final String entities = response.getEntity();
    assertThat(entities, is(notNullValue()));
    //System.out.println("Response from uri " + uri + ":\n" + entities);
    RestVdbModelSource[] sources = KomodoJsonMarshaller.unmarshallArray(entities, RestVdbModelSource[].class);
    assertEquals(1, sources.length);
    RestVdbModelSource source = sources[0];
    assertEquals("twitter", source.getId());
    assertEquals(KomodoType.VDB_MODEL_SOURCE, source.getkType());
    assertEquals("java:/twitterDS", source.getJndiName());
    assertEquals("rest", source.getTranslator());
    Collection<RestLink> links = source.getLinks();
    assertEquals(4, links.size());
    RestLink refLink = null;
    for (RestLink link : links) {
        if (LinkType.REFERENCE.equals(link.getRel()))
            refLink = link;
    }
    assertNotNull(refLink);
    URI href = refLink.getHref();
    assertTrue(href.toString().endsWith("workspace/vdbs/twitter/VdbTranslators/rest"));
}