@Test
public void testThatGetIpSetReturnsAListOfSubNetInfoObjects() {

    GetIPSetResult result = mock(GetIPSetResult.class);
    IPSet ipSet = mock(IPSet.class);
    when(result.getIPSet()).thenReturn(ipSet);
    List<IPSetDescriptor> descriptors = new LinkedList<>();
    descriptors.add(new IPSetDescriptor().withType(IPSetDescriptorType.IPV4).withValue("192.168.0.1/32"));
    descriptors.add(new IPSetDescriptor().withType(IPSetDescriptorType.IPV4).withValue("192.168.0.2/32"));
    descriptors.add(new IPSetDescriptor().withType(IPSetDescriptorType.IPV4).withValue("192.168.0.3/32"));
    when(ipSet.getIPSetDescriptors()).thenReturn(descriptors);
    when(awswaf.getIPSet(isA(GetIPSetRequest.class))).thenReturn(result);
    List<SubnetUtils.SubnetInfo> list = processor.getIpSet("DOES NOT MATTER", 0);
    assertTrue("The list should contain 3 items", list.size() == 3);
}