@Test
void extractGenericTabularDataWithIntegerAndObjectNamePath() throws OpenDataException, AttributeNotFoundException, MalformedObjectNameException {

    TabularTypeAndJson taj = new TabularTypeAndJson(
            new String[] { "bundleId", "oName" },
            new CompositeTypeAndJson(
                    LONG,"bundleId",null,
                    OBJECTNAME,"oName",null,
                    BOOLEAN,"active",null
            ));
    TabularData data = new TabularDataSupport(taj.getType());
    data.put(new CompositeDataSupport(
            taj.getType().getRowType(),
            new String[]{"bundleId", "oName", "active"},
            new Object[]{10L,new ObjectName("test:type=bundle"), false}
    ));
    JSONObject result = (JSONObject) extract(true, data, "10", "test:type=bundle");
    assertEquals(result.size(),3);
    assertEquals(result.get("bundleId"),10L);
    assertEquals(result.get("active"),false);
}