@Test
public void jsonAndInvalidPaths() throws AttributeNotFoundException {

    Collection collection = Arrays.asList("jolokia","habanero");
    for (String path : new String[] { "bla", "2"}) {
        Stack<String> paths = new Stack();
        paths.add(path);
        try {
            extractor.extractObject(converter, collection, paths, true);
            fail();
        } catch (AttributeNotFoundException exp) {
        }
    }
}