DefaultCRestConfig implements CRestConfig { public String getBooleanTrue(){ return get(CREST_BOOLEAN_TRUE, "true"); } DefaultCRestConfig(Map<String, Object> m); CRestConfig merge(Map<String, Object> m); T get(String key); T get(String propName, T defaultIfNotFound); T get(Class<?> key); T get(Class<?> key, T defaultIfNotFound); int getMaxAttempts(); String getDateFormat(); String getBooleanTrue(); String getBooleanFalse(); int getConcurrencyLevel();  }
@Test public void getBooleanTrueShouldTryToLookUpInMapAndReturnDefault(){ assertEquals("true", toTest.getBooleanTrue()); verify(config).containsKey(CRestConfig.CREST_BOOLEAN_TRUE); }