FixtureFactoryLoader.loadTemplates("br.com.six2six.template");
}
@Test
public void fixtureClient() {
Client client = Fixture.from(Client.class).gimme("valid");
assertNotNull("Client should not be null", client);
assertNotNull("Address should not be null", client.getAddress());
Calendar expectedAge = Calendar.getInstance();
expectedAge.add(Calendar.YEAR, -18);
String expectedStringBirthday = new SimpleDateFormat("dd/MM/yyyy").format(expectedAge.getTime());
assertEquals("client birthday should be 18 years ago", expectedAge.get(Calendar.YEAR), client.getBirthday().get(Calendar.YEAR));
assertEquals(expectedStringBirthday, client.getBirthdayAsString());
}