@Test
public void testPost() throws Exception {
Account account = new Account("1", "Ben");
account.setEntityId(new Long(0));
BindingResult result = new BeanPropertyBindingResult(account, "account");
SessionStatus sessionStatus = new SimpleSessionStatus();
String view = controller.onSubmit(account , result, sessionStatus);
assertEquals("redirect:/accounts/accountDetails.htm?entityId=0", view);
assertTrue(sessionStatus.isComplete());
account = accountManager.getAccount(Long.valueOf(0));
assertEquals("1", account.getNumber());
assertEquals("Ben", account.getName());
}