PentahoEhCacheBasedUserCache extends EhCacheBasedUserCache { public boolean isCaseSensitive() { return caseSensitive; }  boolean isCaseSensitive(); void setCaseSensitive( boolean caseSensitive ); @Override UserDetails getUserFromCache( String username ); @Override void putUserInCache( UserDetails user ); @Override void removeUserFromCache( String username );  }
@Test public void testIsCaseSensitive() { PentahoEhCacheBasedUserCache userCache = new PentahoEhCacheBasedUserCache(); setInternalState( userCache, "caseSensitive", true ); assertTrue( userCache.isCaseSensitive() ); setInternalState( userCache, "caseSensitive", false ); assertFalse( userCache.isCaseSensitive() ); }