setTargetComponent(housingA);
testMenu.fireMenuSelected();
Assert.assertEquals(testMenu.getMenuComponentCount(), 4);
PlatformAccess access = new PlatformAccess();
Platform mockPlatform = Mockito.mock(Platform.class);
PersistenceProvider mockPersistenceProvider = Mockito.mock(PersistenceProvider.class);
access.setPlatform(mockPlatform);
Mockito.when(mockPlatform.getPersistenceProvider()).thenReturn(mockPersistenceProvider);
JMenuItem menuItem = (JMenuItem) testMenu.getMenuComponent(3);
JCheckBoxMenuItem checkBoxMenuItem = (JCheckBoxMenuItem) menuItem;
Action action = menuItem.getAction();
Assert.assertNotNull(action);