@Test
 public void testFindByProjectId() throws Throwable {
   List<Vm> foundVms = vmDcpBackend.filterByProject(vm.projectId);
   assertThat(foundVms, is(notNullValue()));
   assertThat(foundVms.size(), is(1));
   assertThat(foundVms.get(0).getName(), is(vm.name));
 }
 @Test
 public void testWithNonExistingProjectId() throws Throwable {
   String id = UUID.randomUUID().toString();
   try {
     vmDcpBackend.filterByProject(id);
     fail("vmDcpBackend.filterByProject for a non existing projectId should have failed");
   } catch (ProjectNotFoundException e) {
     assertThat(e.getMessage(), containsString(id));
   }
 }