### Question:
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } SpaceTap(LocalSpace sp, Object key, Object tapKey, long tapTimeout);  SpaceTap(LocalSpace ssp, LocalSpace dsp, Object key, Object tapKey, long tapTimeout); void notify(Object key, Object value); void close();  }### Answer:
@Test public void testClose() throws Throwable { SpaceTap spaceTap = new SpaceTap(new TSpace(), "\u0001 ", Integer.valueOf(1), 100L); spaceTap.close(); assertNull(spaceTap.ssp, "spaceTap.ssp"); }
@Test public void testClose1() throws Throwable { LocalSpace ssp = new TSpace(); SpaceTap spaceTap = new SpaceTap(ssp, ssp, new Object(), "", 100L); spaceTap.close(); spaceTap.close(); assertNull(spaceTap.ssp, "spaceTap.ssp"); }