// Path: src/main/java/net/kimleo/rec/common/concept/Mapped.java
// public interface Mapped<T> {
//     T get(String field);
// 
//     List<String> keys();
// }


import net.kimleo.rec.common.concept.Mapped;
import org.junit.Test;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
package net.kimleo.rec.v2.model.impl;





public class ResultSetSourceTest {
    @Test
    public void shouldPass() throws Exception {
        ResultSet mockedResultSet = mock(ResultSet.class);
        when(mockedResultSet.getObject("key")).thenReturn("1").thenReturn("2");

        when(mockedResultSet.next()).thenReturn(true).thenReturn(true).thenReturn(false);

// Path: src/main/java/net/kimleo/rec/common/concept/Mapped.java
// public interface Mapped<T> {
//     T get(String field);
// 
//     List<String> keys();
// }


// Path: src/test/java/net/kimleo/rec/v2/model/impl/ResultSetSourceTest.java
import net.kimleo.rec.common.concept.Mapped;
import org.junit.Test;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

package net.kimleo.rec.v2.model.impl;





public class ResultSetSourceTest {
    @Test
    public void shouldPass() throws Exception {
        ResultSet mockedResultSet = mock(ResultSet.class);
        when(mockedResultSet.getObject("key")).thenReturn("1").thenReturn("2");

        when(mockedResultSet.next()).thenReturn(true).thenReturn(true).thenReturn(false);

        List<Mapped<String>> list = new ResultSetSource(mockedResultSet)