@Test
public void testGetDefaultViewId() throws Exception {

    final User guest = new GuestUser();
    assertEquals("User with no roles should end up using the value configure in 'view.default'", 5, service.getDefaultViewId(guest));
    guest.addRole(1, "Guest");
    assertEquals("User with Guest role should end up using the value configure in 'view.default.Guest'", 4, service.getDefaultViewId(guest));
    final User user = new User();
    user.addRole(2, "User");
    assertEquals("User with User role should end up using the value configure in 'view.default.User'", 3, service.getDefaultViewId(user));
    user.addRole(3, "Admin");
    assertEquals("User with Admin role should end up using the value configure in 'view.default.Admin'", 2, service.getDefaultViewId(user));
}