public void testQueryForMapWithValueProperty() throws SQLException { Map result = new HashMap(); TestSqlMapClientTemplate template = new TestSqlMapClientTemplate(); template.executor.queryForMap("myStatement", "myParameter", "myKey", "myValue"); template.executorControl.setReturnValue(result, 1); template.executorControl.replay(); assertEquals(result, template.queryForMap("myStatement", "myParameter", "myKey", "myValue")); template.executorControl.verify(); }