replay(service, sessionStatus);
String view = controller.updatePreferences(form, errors, validToken, validToken,REFERRER_ID, model, sessionStatus);
assertEquals(ViewNames.ADMIN_PREFERENCE_DETAIL, view);
assertTrue(errors.hasErrors());
assertTrue(model.containsAttribute("topnav"));
assertTrue(model.containsAttribute("tabs"));
assertFalse("Model has not been cleared", model.isEmpty());
verify(service, sessionStatus);
}