### Question:
ProcessManagerStatus { public void removeNotRunningMicroserviceStatus() { synchronized (microservicesStatus) { microservicesStatus.entrySet().removeIf(entry -> entry.getValue().getStatus() == MicroserviceState.UNKNOWN || entry.getValue().getStatus() == MicroserviceState.DELETING); } } ProcessManagerStatus(); String getJsonMicroservicesStatus(); String getJsonRegistriesStatus(); int getRunningMicroservicesCount(); ProcessManagerStatus setRunningMicroservicesCount(int count); ProcessManagerStatus setMicroservicesStatus(String microserviceUuid, MicroserviceStatus status); ProcessManagerStatus setMicroservicesState(String microserviceUuid, MicroserviceState state); MicroserviceStatus getMicroserviceStatus(String microserviceUuid); void removeNotRunningMicroserviceStatus(); int getRegistriesCount(); Map<Integer, LinkStatus> getRegistriesStatus(); ProcessManagerStatus setMicroservicesStatePercentage(String microserviceUuid, float percentage);  }### Answer:
@Test public void testRemoveNotRunningMicroserviceStatus() { processManagerStatus.setMicroservicesStatus(microserviceUuid, microserviceStatus); processManagerStatus.removeNotRunningMicroserviceStatus(); verify(microserviceStatus, times(2)).getStatus(); }