Screens extends Helper { public Screen add() { Screen screen = new Screen(tracker); tracker.getBusinessObjects().put(screen.getId(), screen); return screen; } Screens(Tracker tracker); Screen add(); Screen add(android.content.Context context); Screen add(String name); Screen add(String name, String chapter1); Screen add(String name, String chapter1, String chapter2); Screen add(String name, String chapter1, String chapter2, String chapter3);  }
@Test public void addTest() { screens.add(); assertEquals(1, tracker.getBusinessObjects().size()); }
@Test public void addWithLevel2Test() { screens.add("name").setLevel2(3); assertEquals(1, tracker.getBusinessObjects().size()); }
@Test public void addWithChaptersTest() { screens.add("name", "chap1", "chap2", "chap2"); assertEquals(1, tracker.getBusinessObjects().size()); }