counts = getCounts( Dataset.class, new Long(7770L), po.map() );
counts = getCounts( Dataset.class, fixture.du7770.getId(), po.map() );
    public void test_counts() throws Exception    {        Map counts;                counts = getCounts( Dataset.class, new Long(7770L), null );        assertNull( counts );        PojoOptions po = new PojoOptions().leaves();        counts = getCounts( Dataset.class, new Long(7770L), po.map() );        assertTrue( counts == null || null == counts.get( Image.ANNOTATIONS ));        assertTrue( counts == null || null == counts.get( Dataset.ANNOTATIONS ) );                counts = getCounts( Dataset.class, new Long(7771L), null );        assertNull( counts.get( Image.ANNOTATIONS ));        assertTrue( counts.containsKey( Dataset.ANNOTATIONS ));        assertTrue( ( (Long) counts.get( Dataset.ANNOTATIONS) ).intValue() == 1 );                    }