@Test (dependsOnMethods = { "testConstructor" })
public void testNonNullContexts() {
File testOutputFile = new File("testImageExport.png");
File testOutputFile2 = new File("testImageExport2.png");
ActionContextImpl context = Mockito.mock(ActionContextImpl.class);
Mockito.when(context.getTargetHousing()).thenReturn(housing);
Mockito.when(context.getSelectedManifestations()).thenReturn(Collections.singleton(aView));
Mockito.when(fileChooser.showSaveDialog(aView)).thenReturn(JFileChooser.APPROVE_OPTION);
Mockito.when(fileChooser.getSelectedFile()).thenReturn(testOutputFile);
exportViewAction.setFileChooser(fileChooser);
exportWindowAction.setFileChooser(fileChooser);
Mockito.when(housing.getInspectionArea()).thenReturn(inspectionArea);
Mockito.when(inspectionArea.getHousedViewManifestation()).thenReturn(aView);
Mockito.when(aView.getWidth()).thenReturn(10);
Mockito.when(aView.getHeight()).thenReturn(10);
context.setTargetHousing(housing);
Mockito.when(context.getSelectedManifestations()).thenReturn(Collections.singleton(aView));
ActionContextImpl context2 = Mockito.mock(ActionContextImpl.class);
Mockito.when(context2.getTargetHousing()).thenReturn(housing);
Mockito.when(context2.getWindowManifestation()).thenReturn(aView);
assertTrue(exportViewAction.canHandle(context));
assertTrue(exportViewAction.isEnabled());