@Test
public void testFromJson() throws Exception {

    securityGroup.fromJson(secGroupJson);
    assertEquals(securityGroup.getDescription(), "default");
    assertEquals(securityGroup.getIdSecurityGroup(), "6");
    assertEquals(securityGroup.getName(), "namedefault");
    assertEquals(securityGroup.getRules().size(), 2);
    //assertEquals(securityGroup.getRules().get(0).getFromPort() , "22");
    //assertEquals(securityGroup.getRules().get(1).getToPort(), "8080");
}