UserDevfileManager { public void removeUserDevfile(String id) throws ServerException { requireNonNull(id); userDevfileDao.remove(id); LOG.debug( "UserDevfile with id '{}' removed by user '{}'", id, EnvironmentContext.getCurrent().getSubject().getUserName()); } @Inject  UserDevfileManager(
      AccountManager accountManager, UserDevfileDao userDevfileDao, EventService eventService); UserDevfile createDevfile(UserDevfile userDevfile); UserDevfile getById(String id); Page<UserDevfile> getByNamespace(String namespace, int maxItems, long skipCount); UserDevfile updateUserDevfile(UserDevfile update); void removeUserDevfile(String id); Page<UserDevfile> getUserDevfiles(
      int maxItems,
      int skipCount,
      List<Pair<String, String>> filter,
      List<Pair<String, String>> order);  }
@Test(expectedExceptions = NullPointerException.class) public void shouldThrowNpeWhendeleteUserDevfileByNullId() throws Exception { userDevfileManager.removeUserDevfile(null); }
@Test public void shouldRemoveUserDevfile() throws Exception { final UserDevfileImpl userDevfile = createUserDevfile(); userDevfileManager.removeUserDevfile(userDevfile.getId()); verify(userDevfileDao).remove(userDevfile.getId()); }