// Verify interactions with a mock inspector
Mockito.when(mockContext.getWindowManifestation()).thenReturn(mockInspector);
// Verify that refresh can handle, is enabled for an Inspector
ContextAwareAction refresh = new RefreshAction();
Assert.assertTrue(refresh.canHandle(mockContext));
Assert.assertTrue(refresh.isEnabled());
// Verify actionPerformed triggers appropriate method
refresh.actionPerformed(mockEvent);
Mockito.verify(mockInspector).setHousedViewManifestation(mockViewInfo);