@Test
public void shouldGetVdbModelSource() throws Exception {

    loadVdbs();
    // get
    Properties settings = _uriBuilder.createSettings(SettingNames.VDB_NAME, TestUtilities.PORTFOLIO_VDB_NAME);
    _uriBuilder.addSetting(settings, SettingNames.VDB_PARENT_PATH, _uriBuilder.workspaceVdbsUri());
    _uriBuilder.addSetting(settings, SettingNames.MODEL_NAME, "PersonalValuations");
    _uriBuilder.addSetting(settings, SettingNames.SOURCE_NAME, "excelconnector");
    URI uri = _uriBuilder.vdbModelSourceUri(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 from uri " + uri + ":\n" + entity);
    RestVdbModelSource source = KomodoJsonMarshaller.unmarshall(entity, RestVdbModelSource.class);
    assertNotNull(source);
    assertEquals("excelconnector", source.getId());
    assertEquals(KomodoType.VDB_MODEL_SOURCE, source.getkType());
    assertEquals("java:/excel-file", source.getJndiName());
    assertEquals("excel", source.getTranslator());
    Collection<RestLink> links = source.getLinks();
    assertEquals(3, links.size());
}