@Test
public void testPassUnspecifiedWithTransform() {

    // Fill the three parts of a config document
    incoming.put("passUnspecifiedIn", true);
    String[][] transforms = {
            {"str","message"},
            {"str", "place.loc"},
            {"str","invalid","nope"},
            {"str"}
    };
    List<List> transformations = new ArrayList<>();
    for (String[] t : transforms) {
        List list = new ArrayList(Arrays.asList(t));
        transformations.add(list);
    }
    incoming.put("transformations", transformations);
    // Create the UUT
    nHandler = new UDPNotificationHandler(incoming, fakeClient);
    // Create sample data
    String address = "localhost";
    int port = 1234;
    Map<String,Object> expectedData = new LinkedHashMap<>();
    String testStr = "{\"str\":\"msg\",\"stay\":\"here\"}";
    // Manage expectations
    Map<String,Object> subMap = new LinkedHashMap<>();
    subMap.put("loc","msg");
    expectedData.put("place",subMap);
    expectedData.put("message","msg");
    expectedData.put("stay","here");
    // Test UUT
    createPacket(testStr, address, port);
    nHandler.handleMessage(pack);
    assert fakeClient.compareData(expectedData);
    assert fakeClient.compareSource(sourceName);
}