@@ -0,0 +1,1270 @@
+package com.slackworks.modelcitizen.field;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport com.slackworks.modelcitizen.CreateModelException;%0Aimport com.slackworks.modelcitizen.ModelFactory;%0Aimport com.slackworks.modelcitizen.RegisterBlueprintException;%0Aimport com.slackworks.modelcitizen.blueprint.UserBlueprint;%0Aimport com.slackworks.modelcitizen.model.User;%0A%0Apublic class FieldCallBackTest %7B%0A%09%0A%09private ModelFactory modelFactory;%0A%09private UserBlueprint userBlueprint = new UserBlueprint();%0A%09%0A%09@Before%0A%09public void setUp() throws RegisterBlueprintException %7B%0A%09%09modelFactory = new ModelFactory();%0A%09%09modelFactory.registerBlueprint( userBlueprint );%0A%09%7D%0A%09%0A%0A%09@Test%0A%09public void testCreateModelWithFieldCallBack() throws CreateModelException %7B%0A%09%09%0A%09%09User user = modelFactory.createModel( User.class );%0A%09%09%0A%09%09assertNotNull( user.getUsername() );%0A%09%09assertTrue( user.getUsername().contains(%22username%22) );%0A%09%09%0A%09%09assertNotNull( user.getEmails() );%0A%09%09assertEquals( 3, user.getEmails().size() );%0A%09%09for ( String email : user.getEmails() ) %7B%0A%09%09%09assertTrue( email.contains( %22email%22 ) );%0A%09%09%09assertTrue( email.contains( %22@test.net%22 ) );%0A%09%09%7D%0A%09%7D%0A%7D%0A

Move FieldCallBack to own test