DbParameterAccessorsMapBuilder { public Map<String, DbParameterAccessor> toMap() { return parameterAccessors; } DbParameterAccessorsMapBuilder(TypeTransformerFactory dbfitToJdbcTransformerFactory); Map<String, DbParameterAccessor> toMap(); void add(String name, Direction direction, int sqlType, Class javaType);  }
@Test public void includesAllAddedParameters() { createMixOfParametersAndReturnValues(); assertThat(params.toMap().keySet(), containsInAnyOrder("r1", "p1", "r2", "p2")); }
@Test public void normalisesMapKey() { createParameterAccessor("param 1", INPUT); DbParameterAccessor paramAccessor = params.toMap().get("param1"); assertThat(paramAccessor, is(not(nullValue()))); assertThat(paramAccessor.getName(), is("param 1")); }