public class RegisterCustomerDataProvider {
@DataProvider(name = "setupCustomerControllerData")
public static Object[][] createCustomer() {
Customer customer = new CustomerImpl();
customer.setEmailAddress("testCase@test.com");
customer.setFirstName("TestFirstName");
customer.setLastName("TestLastName");
customer.setUsername("TestCase");
ChallengeQuestion question = new ChallengeQuestionImpl();
question.setId(1L);
customer.setChallengeQuestion(question);
customer.setChallengeAnswer("Challenge CandidateItemOfferAnswer");
RegisterCustomerForm registerCustomer = new RegisterCustomerForm();
registerCustomer.setCustomer(customer);
registerCustomer.setPassword("TestPassword");
registerCustomer.setPasswordConfirm("TestPassword");
return new Object[][] { new Object[] { registerCustomer } };