@Test
public void multipleRoutesAreAllowed() throws TbNodeException, ScriptException {

    initWithScript();
    TbMsgMetaData metaData = new TbMsgMetaData();
    metaData.putValue("temp", "10");
    metaData.putValue("humidity", "99");
    String rawJson = "{\"name\": \"Vit\", \"passed\": 5}";
    TbMsg msg = new TbMsg(UUIDs.timeBased(), "USER", null, metaData, rawJson, ruleChainId, ruleNodeId, 0L);
    mockJsExecutor();
    when(scriptEngine.executeSwitch(msg)).thenReturn(Sets.newHashSet("one", "three"));
    node.onMsg(ctx, msg);
    verify(ctx).getJsExecutor();
    verify(ctx).tellNext(msg, Sets.newHashSet("one", "three"));
}