SelfPromotion extends OnAppAd { public CustomObjects CustomObjects() { if (customObjects == null) { customObjects = new CustomObjects(this); } return customObjects; } SelfPromotion(Tracker tracker); int getAdId(); String getFormat(); String getProductId(); SelfPromotion setAdId(int adId); SelfPromotion setFormat(String format); SelfPromotion setProductId(String productId); SelfPromotion setAction(Action action); CustomObjects CustomObjects();  }
@Test public void CustomObjectsTest() { CustomObjects customObjects = selfPromotion.CustomObjects(); Assert.assertNotNull(selfPromotion.CustomObjects()); Assert.assertEquals(selfPromotion.CustomObjects(), customObjects); }