    @Test
    public void testSimpleToTarget() throws DecodeException {

        TEvent event = new TEvent();
        JSONDecoder decoder = new JSONDecoder();
        decoder.decode(simpleSource1, event, "tgt");

        JSONObject o = (JSONObject)event.get("tgt");
        Assert.assertEquals("name1", o.getString("name"));
        Assert.assertEquals("type1", o.getString("type"));
    }