@Test
  public void itShouldRetrieveNodeTypes() throws RepositoryException {
    when(mockNodes.getNodeTypes(mockSession)).thenReturn(mockRdfStream);

    final RdfStream nodeTypes = testObj.getNodeTypes(mockUriInfo);

    assertEquals("Got wrong triples!", mockRdfStream, nodeTypes);
  }
  @Test
  public void itShouldPersistIncomingCndFile() throws RepositoryException, IOException {
    testObj.updateCnd(mockInputStream);

    verify(mockNodes).registerNodeTypes(mockSession, mockInputStream);
  }