@Test
public void testShouldBeIncludedPermission() throws Exception {

    SearchChannel channel = mock(SearchChannel.class);
    mockCapabilities(channel, true);
    doReturn(false).when(channel).hasPermission(getGuestUser());
    doReturn(true).when(channel).hasPermission(getLoggedInUser());
    SearchOptionsHandler handler = getHandler();
    assertFalse("Channel should not permitted for guest", handler.shouldBeIncluded(channel, getGuestUser()));
    assertTrue("Channel should be permitted for user", handler.shouldBeIncluded(channel, getLoggedInUser()));
}