Form { public boolean save() { return save(null); } protected  Form(Builder<S, D> builder); void display(Bundle bundle); void display(); boolean save(); void forceSave(); boolean save(Bundle bundle); void forceSave(Bundle bundle);  }
@Test public void testSave() throws Exception { AuthModelSource source = new AuthModelSource(null); AuthModelDrain drain = new AuthModelDrain(null); Form form = new Form.Builder<>(source, drain, mapper).build(); assertNull(drain.getDrain()); form.display(); assertFalse(form.save()); source.getSource().email = EMAIL; source.getSource().password = PASSWORD; assertTrue(form.save()); assertEquals(EMAIL, drain.getDrain().email); assertEquals(PASSWORD, drain.getDrain().password); }