### Question:
ManagementView extends AbstractView { @VisibleForTesting Map<String, NodeStatus> getNodeStatusMap(Layout layout) { Map<String, NodeStatus> nodeStatusMap = new HashMap<>(); for (String endpoint : layout.getAllServers()) { if (layout.getUnresponsiveServers().contains(endpoint)) { nodeStatusMap.put(endpoint, NodeStatus.DOWN); } else if (layout.getSegments().size() != layout.getSegmentsForEndpoint(endpoint).size()) { nodeStatusMap.put(endpoint, NodeStatus.DB_SYNCING); } else { nodeStatusMap.put(endpoint, NodeStatus.UP); } } return nodeStatusMap; } ManagementView(@NonNull CorfuRuntime runtime); void removeNode(@Nonnull String endpointToRemove, int retry,
                           @Nonnull Duration timeout, @Nonnull Duration pollPeriod); void forceRemoveNode(@Nonnull String endpointToRemove, int retry,
                                @Nonnull Duration timeout, @Nonnull Duration pollPeriod); void addNode(@Nonnull String endpointToAdd, int retry,
                        @Nonnull Duration timeout, @Nonnull Duration pollPeriod); void healNode(@Nonnull String endpointToHeal, int retry, @Nonnull Duration timeout,
                         @Nonnull Duration pollPeriod); void mergeSegments(@Nonnull String endpointToRestoreRedundancy, int retry, @Nonnull Duration timeout,
                              @Nonnull Duration pollPeriod); ClusterStatusReport getClusterStatus(); CompletableFuture<Boolean> bootstrapManagementServer(@Nonnull String endpoint, @Nonnull Layout layout);  }### Answer:
@Test public void testNodeStatusMap() { final String server1 = "server1"; final String server2 = "server2"; final String server3 = "server3"; Layout layout = layoutUtil.getLayout(Arrays.asList(server1, server2, server3)); layout.setUnresponsiveServers(Arrays.asList(server1, server2)); Map<String, NodeStatus> status = managementView.getNodeStatusMap(layout); assertThat(status.get(server1)).isEqualTo(NodeStatus.DOWN); assertThat(status.get(server2)).isEqualTo(NodeStatus.DOWN); assertThat(status.get(server3)).isEqualTo(NodeStatus.UP); }