ct.registerApiInstance(null, "wat");
}
@Test
public void testUnregisterApiInstance() {
LibShapeDraw api0 = new LibShapeDraw();
// Client code should NOT do this as the Controller is an internal class.
// Rather, use api.unregister().
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));
}