}
@Test
public void initObject() {
Sample2 obj = factory.getFactory(Sample2.Factory.class)
.create("XXX", 33).withAtt3(0.5f).att4().build();
String att1 = obj.getAtt1();
int att2 = obj.getAtt2();
float att3 = obj.getAtt3();
boolean att4 = obj.getAtt4();
assertEquals(att1, "XXX");
assertEquals(att2, 33);
assertEquals(att3, 0.5f, 0.01);
assertEquals(att4, true);