@Test
public void testGetClusterNodes() {

  when(mockClusterServer.getClusterMeta(ClusterMetaType.SERVER_META, "")).thenReturn(clusterMetas);
  Response response = clusterRestApi.getClusterNodes();
  ArrayList<HashMap<String, Object>> result = getResultListFromResponse(response);
  Map<String, Object> properties1 = (LinkedTreeMap) result.get(0).get(ClusterMeta.PROPERTIES);
  Map<String, Object> properties2 = (LinkedTreeMap) result.get(1).get(ClusterMeta.PROPERTIES);
  assertEquals(nodeName1, result.get(0).get(ClusterMeta.NODE_NAME));
  assertEquals("ONLINE", properties1.get("STATUS"));
  assertEquals("0.50GB / 1.00GB = 50.00%", properties1.get("MEMORY_USED / MEMORY_CAPACITY"));
  assertEquals("0.20 / 0.40 = 50.00%", properties1.get("CPU_USED / CPU_CAPACITY"));
  assertEquals(nodeName2, result.get(1).get(ClusterMeta.NODE_NAME));
  assertEquals("OFFLINE", properties2.get("STATUS"));
  assertEquals("0.25GB / 1.00GB = 25.00%", properties2.get("MEMORY_USED / MEMORY_CAPACITY"));
  assertEquals("0.25 / 0.40 = 62.50%", properties2.get("CPU_USED / CPU_CAPACITY"));
}