@Test
public void testPersistingMultibleObjectsAtDifferentLvls_shouldReturnByB() throws Exception {

    File tmpDir = FileHelper.createTempDirectory();
    persistBean(tmpDir, B.class, A.class);
    DefaultPersistenceIndex defaultPersistenceIndex =
        new DefaultPersistenceIndex(tmpDir, new DefaultObjectPersistenceBackend());
    List<ObjectInfo> findIndexObject = defaultPersistenceIndex.findIndexObject(B.class);
    assertEquals(1, findIndexObject.size());
}