// Already tested in testQuitEnabled, but also need to obey action's life cycle
Assert.assertEquals(quit.canHandle(mockActionContext), housings > 0);
// Trigger the action - this is the method we are testing
quit.actionPerformed(mockEvent);
// A dialog should have been requested
Mockito.verify(mockWindowManager, Mockito.times(1)).showInputDialog(Mockito.anyString(), Mockito.anyString(), Mockito.<Object[]>any(), Mockito.any(), Mockito.<Map<String,Object>>any());
// All housings should be closed, iff dialog was confirmed