}
@Test
public void testRpList() throws Exception {
CookieCache.put("Cookie","JSESSIONID=2AAF431F59ACEE1CC68B43C87772C54F");
ResourcePoolRead rp = new ResourcePoolRead();
rp.setRpName("test01");
rp.setVcCluster("home");
rp.setRpVsphereName("hadoop01");
rp.setTotalRAMInMB(8192);
rp.setTotalCPUInMHz(2048);
NodeRead node01 = new NodeRead();
node01.setName("node01");
node01.setIpConfigs(createIpConfigs("192.168.1.2"));
List<String> roles01 = new ArrayList<String>();
roles01.add("NameNode");
roles01.add("JobTracker");
roles01.add("DataNode");
roles01.add("HadoopClient");
node01.setRoles(roles01);
NodeRead node02 = new NodeRead();
node02.setName("node02");
node02.setIpConfigs(createIpConfigs("192.168.1.3"));
List<String> roles02 = new ArrayList<String>();
roles02.add("NameNode");
roles02.add("JobTracker");
node02.setRoles(roles02);
NodeRead[] nodes = { node01, node02 };
rp.setNodes(nodes);
ObjectMapper mapper = new ObjectMapper();
this.buildReqRespWithoutReqBody("https://127.0.0.1:8443/serengeti/api/resourcepool/test01",
HttpMethod.GET, HttpStatus.OK, mapper.writeValueAsString(rp));