LibShapeDraw { public boolean unregister() { return LSDController.getInstance().unregisterApiInstance(this); } LibShapeDraw();  LibShapeDraw(String ownerId); boolean unregister(); @Deprecated static String getVersion(); @Deprecated static boolean isControllerInitialized(); LibShapeDraw verifyInitialized(); MinecraftAccess getMinecraftAccess(); boolean isVisible(); LibShapeDraw setVisible(boolean visible); boolean isVisibleWhenHidingGui(); LibShapeDraw setVisibleWhenHidingGui(boolean visibleWhenHidingGui); Set<Shape> getShapes(); LibShapeDraw addShape(Shape shape); LibShapeDraw removeShape(Shape shape); LibShapeDraw clearShapes(); Set<LSDEventListener> getEventListeners(); LibShapeDraw addEventListener(LSDEventListener listener); LibShapeDraw removeEventListener(LSDEventListener listener); LibShapeDraw clearEventListeners(); boolean debugDump(); String getInstanceId(); @Override String toString();  }
@Test public void testUnregister() { MockShape counter = new MockShape(); lib.addShape(counter); renderCheck(true, counter, false); assertTrue(lib.unregister()); renderCheck(false, counter, false); assertFalse(lib.unregister()); assertFalse(lib.unregister()); }