@Test
public void validateSimpleTaintFrameWithUnknownSources() {

    Taint unknown = new Taint(Taint.State.UNKNOWN);
    unknown.addSource(new UnknownSource(UnknownSourceType.FIELD, Taint.State.TAINTED).setSignatureField("taintedField"));
    unknown.addSource(new UnknownSource(UnknownSourceType.RETURN, Taint.State.TAINTED).setSignatureMethod("returnFrom"));
    unknown.addSource(new UnknownSource(UnknownSourceType.PARAMETER, Taint.State.TAINTED).setParameterIndex(2));
    TaintFrame frame = new TaintFrame(0);
    frame.pushValue(unknown);
    String debugOutput = frame.toString();
    System.out.println(debugOutput);
    assertTrue(debugOutput.contains("field[taintedField]"));
    assertTrue(debugOutput.contains("method[returnFrom]"));
    assertTrue(debugOutput.contains("parameter[2]"));
}