@Test
public void compositeType() throws OpenDataException, AttributeNotFoundException, ParseException {

    CompositeTypeAndJson taj = new CompositeTypeAndJson(
            STRING,"verein","FCN",
            INTEGER,"platz",6,
            STRING,"trainer",null,
            BOOLEAN,"absteiger",false
    );
    for (Object input : new Object[] { taj.getJson(), taj.getJsonAsString() }) {
        CompositeData result = (CompositeData) converter.convertToObject(taj.getType(),input);
        assertEquals(result.get("verein"),"FCN");
        assertEquals(result.get("trainer"),null);
        assertEquals(result.get("platz"),6);
        assertEquals(result.get("absteiger"),false);
        assertEquals(result.values().size(),4);
    }
}