/** Tests the hasProxy Method */ @Test public void testHasProxy() { // register a proxy IModel model = Model.getInstance(); IProxy proxy = new Proxy("aces", new String[] {"clubs", "spades", "hearts", "diamonds"}); model.registerProxy(proxy); // assert that the model.hasProxy method returns true // for that proxy name Assert.assertTrue("Expecting model.hasProxy('aces') == true", model.hasProxy("aces")); // remove the proxy model.removeProxy("aces"); // assert that the model.hasProxy method returns false // for that proxy name Assert.assertFalse("Expecting model.hasProxy('aces') == false", model.hasProxy("aces")); }