@Test
public void testIsConfiguredToSend() {

    Map<String,Object> outgoing = new LinkedHashMap<>();
    
    outgoing.put("passPureMapOut", true);
    outgoing.put("targetAddress","notValidAddress");
    outgoing.put("targetPort", -100);
    
    assert !udpConfig.isConfiguredToSend(outgoing);
    
    outgoing.put("targetPort", 100);
    
    assert !udpConfig.isConfiguredToSend(outgoing); // targetAddress still invalid
    
    outgoing.put("targetAddress","localhost");
    
    assert udpConfig.isConfiguredToSend(outgoing);
    
    outgoing.put("passPureMapOut", "not a bool");
    
    assert udpConfig.isConfiguredToSend(outgoing); // other options don't matter
    
    outgoing.put("targetPort", -100);
    
    assert !udpConfig.isConfiguredToSend(outgoing);
}