BigQueryDataMarshallerTester<SampleClassWithNestedCollection> tester = new BigQueryDataMarshallerTester<SampleClassWithNestedCollection>(new BigQueryMarshallerByType<SampleClassWithNestedCollection>(SampleClassWithNestedCollection.class));
List<List<String>> toTest = new ArrayList<>();
toTest.add(Lists.newArrayList("", ""));
try {
tester.testGeneratedJson("{\"name\":\"test\",\"id\":1, \"value\":1.5}",
new SampleClassWithNestedCollection(toTest));
} catch (IllegalArgumentException e) {
assertEquals(
"Invalid field. Cannot marshal fields of type Collection<GenericType> or GenericType[].",
e.getMessage());
return;