NuggAds extends Helper { public NuggAd add(JSONObject nuggAdData) { NuggAd nuggAd = new NuggAd(tracker).setNuggAdData(nuggAdData); tracker.getBusinessObjects().put(nuggAd.getId(), nuggAd); return nuggAd; } NuggAds(Tracker tracker); NuggAd add(JSONObject nuggAdData);  }
@Test public void addTest() { nuggAds.add(new JSONObject()); assertEquals(1, tracker.getBusinessObjects().size()); }