ResultSetMapperComponentImpl implements ResultSetMapperComponent { public ResultSetMapping<?> put(ResultSetMapping<?> item) { requireNonNull(item); return map.put(item.getJavaClass(), item); } ResultSetMapperComponentImpl(); ResultSetMapping<?> put(ResultSetMapping<?> item); ResultSetMapping<?> put(DbmsType dbmsType, ResultSetMapping<?> item); @Override ResultSetMapping<T> apply(DbmsType dbmsType, Class<T> javaClass); @Override ResultSetMapping<T> apply(Class<T> javaClass);  }
@Test void put() { assertThrows(NullPointerException.class, () -> instance.put(null)); assertThrows(NullPointerException.class, () -> instance.put(null, null)); assertDoesNotThrow(() -> instance.put(dbmsType, resultSetMapping)); }