### Question:
UserDataPrecomputer { protected void checkNetwork(long id) throws ApplicationException { if (id >= 0) { throw new ApplicationException("not a valid id for a user network: " + id); } if (networkIds.containsId(id)) { throw new ApplicationException("a network with the id " + id + " already exists in the users data set"); } } UserDataPrecomputer(String namespace, int organismId,
            DataCache cache, ProgressReporter progress); void load(); void loadInit(); boolean loadInitPrecomputed(); void save(); void addNetwork(long networkId, SymMatrix m); void reallocKtK(); void reallocKtT(); void updateKtT(long networkId, SymMatrix network); void removeNetwork(int networkId); void removeOrganism();  }### Answer:
@Test (expected=ApplicationException.class) public void testCheckNetworkInvalidId() throws Exception { System.out.println("checkNetworkInvalidId"); String namespace = "user1"; int organismId = 1; int id = 1; Map<Integer, Integer> userColumnMap = new HashMap<Integer, Integer>(); userColumnMap.put(-1, 0); userColumnMap.put(-2, 1); userColumnMap.put(-5, 2); UserDataPrecomputer instance = new UserDataPrecomputer(namespace, organismId, cacheBuilder.getCache(), NullProgressReporter.instance()); instance.checkNetwork(id); }