assertSame(expectedList, actualList);
}
@Test
public void testToCollectionWithResultsBag() {
ResultsBag mockResultsBag = mock(ResultsBag.class, "testToCollectionWithResultsBag.ResultsBag");
List<String> expectedList = Arrays.asList("a", "b", "c");
when(mockResultsBag.asList()).thenReturn(expectedList);
Collection<?> actualList = repositoryQuery.toCollection(mockResultsBag);
assertSame(expectedList, actualList);
}