Mockito.when(mockContext.getSelectedManifestations())
.thenReturn(Arrays.asList(mockView));
Mockito.when(mockView.getManifestedComponent()).thenReturn(mockComponent);
Mockito.when(mockPolicy.execute(Mockito.eq(compositionKey), Mockito.<PolicyContext>any()))
.thenReturn(new ExecutionResult(null, true, ""));
Assert.assertTrue(objsMenu.canHandle(mockContext));
// Multiple selections, even though policy says yes - should disallow
Mockito.when(mockContext.getSelectedManifestations())
.thenReturn(Arrays.asList(mockView, mockView));
Mockito.when(mockView.getManifestedComponent()).thenReturn(mockComponent);