@Test
public void testPOST_apiUrl() {

    String url = "http://example.com/";
    PacketFactory factory = new PacketFactory(url);
    List<Packet> packets = factory.buildPackets(Arrays.asList(new Event("straw"), new Event("berries")));
    for (Packet p : packets) {
        assertEquals(url, p.getTargetURL());
    }
}