WallHolderService implements WallDAO { @Override public Wall update(Wall wall) { Wall newWall = wallDAO.update(wall); wallProcess.rebuildFullWallInformations(newWall); Wall previousWall = WALLS.get(wall.getName()); if (previousWall != null) { previousWall.close(); WALLS.remove(previousWall.getName()); } WALLS.put(newWall.getName(), newWall); return newWall; }  @Override List<Wall> getWalls(); @Override Wall find(String wallName); @Override Wall update(Wall wall); Set<String> getWallNames(); @Override void deleteWall(String wallName);  }
@Test(expected = NullPointerException.class) public void should_not_accept_null_parameter() { wallHolderService.update(null); }
@Ignore @Test public void should_find_status() { Wall wall2 = new Wall("wall1"); wallHolderService.update(wall2); }