@Test
public void testGET_apiUrl() {

    String url = "http://example.com/";
    PacketFactory factory = new PacketFactory(url);
    List<Packet> packets = factory.buildPackets(Collections.singletonList(new Event("strawberries")));
    assertTrue(packets.get(0).getTargetURL().startsWith(url));
}