LSDController { public boolean unregisterApiInstance(LibShapeDraw apiInstance) { boolean result = apiInstances.remove(apiInstance); if (result) { log.info("unregistered API instance " + apiInstance.getInstanceId()); } return result; } private  LSDController(); static LSDController getInstance(); static Logger getLog(); static MinecraftAccess getMinecraftAccess(); static boolean isInitialized(); void initialize(MinecraftAccess minecraftAccess); String registerApiInstance(LibShapeDraw apiInstance, String ownerId); boolean unregisterApiInstance(LibShapeDraw apiInstance); void respawn(ReadonlyVector3 playerCoords, boolean isNewServer, boolean isNewDimension); void gameTick(ReadonlyVector3 playerCoords); void render(ReadonlyVector3 playerCoords, boolean isGuiHidden); boolean debugDump();  }
@Test public void testUnregisterApiInstance() { LibShapeDraw api0 = new LibShapeDraw(); assertTrue(ct.unregisterApiInstance(api0)); assertFalse(ct.unregisterApiInstance(api0)); assertFalse(ct.unregisterApiInstance(api0)); LibShapeDraw api1 = new LibShapeDraw(); assertTrue(api1.unregister()); assertFalse(api1.unregister()); assertFalse(api1.unregister()); assertFalse(ct.unregisterApiInstance(null)); }