### Question:
NameRegistrar implements Loggeable { public static void unregister(String key) { SpaceUtil.wipe(sp, key); } private  NameRegistrar(); static TSpace<String, Object> getSpace(); static Map<String,Object> getAsMap(); static NameRegistrar getInstance(); static void register(String key, Object value); static void unregister(String key); static T get(String key); static T get(String key, long timeout); static T getIfExists(String key); void dump(PrintStream p, String indent); void dump(PrintStream p, String indent, boolean detail);  }### Answer:
@Test public void testUnregister() throws Exception { assertThrows(NameRegistrar.NotFoundException.class, () -> { NameRegistrar.register("test3", "someTest3Value"); assertThat(NameRegistrar.get("test3"), is("someTest3Value")); NameRegistrar.unregister("test3"); NameRegistrar.get("test3"); }); }
@Test public void testUnregisterUnknownKeyDoesNotThrowException() throws Exception { NameRegistrar.unregister("unknownKey"); }