Source:
public void testVarcharTextAndAsciiLists() { String query = "select * from something"; ImmutableMap<String, ColumnTypes> columnTypes = ImmutableMap.of( "list_type_varchar", ColumnTypes.VarcharList, "list_type_text", ColumnTypes.TextList, "list_type_ascii", ColumnTypes.AsciiList ); ImmutableMap<String, ListType> columnTypesAsNewCqlType = ImmutableMap.of( "list_type_varchar", list(PrimitiveType.VARCHAR), "list_type_text", list(PrimitiveType.TEXT), "list_type_ascii", list(PrimitiveType.ASCII) ); ImmutableMap<String, List<String>> rows = ImmutableMap.of( "list_type_varchar", Arrays.asList("one", "two", "three"), "list_type_text", Arrays.asList("one", "two", "three"), "list_type_ascii", Arrays.asList("one", "two", "three") ); PrimingRequest prime = PrimingRequest.queryBuilder() .withQuery(query) .withColumnTypes(columnTypes) .withRows(rows) .build(); AbstractScassandraTest.primingClient.prime(prime); List<CassandraRow> result = cassandra().executeQuery(query).rows(); assertEquals(result.size(), 1); CassandraRow rowOne = result.get(0); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_varchar", String.class)); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_text", String.class)); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_ascii", String.class)); List<PrimingRequest> primingRequests = AbstractScassandraTest.primingClient.retrieveQueryPrimes(); assertEquals(columnTypesAsNewCqlType, primingRequests.get(0).getThen().getColumnTypes()); assertEquals(Arrays.asList(rows), primingRequests.get(0).getThen().getRows()); }

Target:
public void testVarcharTextAndAsciiLists() { String query = "select * from something"; ImmutableMap<String, ColumnTypes> columnTypes = ImmutableMap.of( "list_type_varchar", ColumnTypes.VarcharList, "list_type_text", ColumnTypes.TextList, "list_type_ascii", ColumnTypes.AsciiList ); ImmutableMap<String, CqlType> columnTypesAsNewCqlType = ImmutableMap.of( "list_type_varchar", list(PrimitiveType.VARCHAR), "list_type_text", list(PrimitiveType.TEXT), "list_type_ascii", list(PrimitiveType.ASCII) ); ImmutableMap<String, List<String>> rows = ImmutableMap.of( "list_type_varchar", Arrays.asList("one", "two", "three"), "list_type_text", Arrays.asList("one", "two", "three"), "list_type_ascii", Arrays.asList("one", "two", "three") ); PrimingRequest prime = PrimingRequest.queryBuilder() .withQuery(query) .withColumnTypes(columnTypes) .withRows(rows) .build(); AbstractScassandraTest.primingClient.prime(prime); List<CassandraRow> result = cassandra().executeQuery(query).rows(); assertEquals(result.size(), 1); CassandraRow rowOne = result.get(0); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_varchar", String.class)); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_text", String.class)); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_ascii", String.class)); List<PrimingRequest> primingRequests = AbstractScassandraTest.primingClient.retrieveQueryPrimes(); assertEquals(columnTypesAsNewCqlType, primingRequests.get(0).getThen().getColumnTypes()); assertEquals(Arrays.asList(rows), primingRequests.get(0).getThen().getRows()); }