@Test
public void testCreateVip() {

	String postData1, postData2;
	IOException error = null;
	postData1 = "{\"id\":\"1\",\"name\":\"vip1\",\"protocol\":\"icmp\",\"address\":\"10.0.0.100\",\"port\":\"8\"}";
	postData2 = "{\"id\":\"2\",\"name\":\"vip2\",\"protocol\":\"tcp\",\"address\":\"10.0.0.200\",\"port\":\"100\"}";
	try {
		vip1 = vipsResource.jsonToVip(postData1);
	} catch (IOException e) {
		error = e;
	}
	try {
		vip2 = vipsResource.jsonToVip(postData2);
	} catch (IOException e) {
		error = e;
	}
	// verify correct parsing
	assertFalse(vip1==null);
	assertFalse(vip2==null);
	assertTrue(error==null);
	lb.createVip(vip1);
	lb.createVip(vip2);
	// verify correct creation
	assertTrue(lb.vips.containsKey(vip1.id));
	assertTrue(lb.vips.containsKey(vip2.id));
}