PentahoEhCacheBasedUserCache extends EhCacheBasedUserCache { public void setCaseSensitive( boolean caseSensitive ) { this.caseSensitive = 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 testSetCaseSensitive() { PentahoEhCacheBasedUserCache userCache = new PentahoEhCacheBasedUserCache(); userCache.setCaseSensitive( true ); assertTrue( (boolean) getInternalState( userCache, "caseSensitive" ) ); userCache.setCaseSensitive( false ); assertFalse( (boolean) getInternalState( userCache, "caseSensitive" ) ); }