### Question:
SingletonIndexCursor extends AbstractIndexCursor<V> { @Override public boolean first() throws LdapException, CursorException { checkNotClosed(); beforeFirst = false; onSingleton = true; afterLast = false; return true; } SingletonIndexCursor( PartitionTxn partitionTxn, IndexEntry<V, String> singleton ); @Override boolean available(); @Override void beforeFirst(); @Override void afterLast(); @Override boolean first(); @Override boolean last(); @Override boolean isFirst(); @Override boolean isLast(); @Override boolean isAfterLast(); @Override boolean isBeforeFirst(); @Override boolean previous(); @Override boolean next(); IndexEntry<V, String> get(); @Override void close(); @Override void close( Exception cause );  }### Answer:
@Test public void testFirst() throws Exception { assertFalse( indexCursor.isFirst() ); assertTrue( indexCursor.first() ); assertTrue( indexCursor.isFirst() ); assertNotNull( indexCursor.get() ); }