  @Test
  public void testMoveToTrashRejectsViewUri() {

    final URI datasetUri = new URIBuilder(repoUri, "ns", "test")
        .with("field", 34)
        .build();

    TestHelpers.assertThrows("Should reject view URI",
        IllegalArgumentException.class, new Runnable() {
          @Override
          public void run() {
            Datasets.moveToTrash(datasetUri);
          }
        });

    verifyNoMoreInteractions(repo);
  }