@Test(expected = NullPointerException.class) public void testClose() throws Exception { App app = new App(URL, 10000); app.notifyMap = null; try { app.getNotify("/notify/test"); } finally { app.close(); } }