@Test
public void isCollectionResponseType() {

  final class MyResponse extends CollectionResponse {
    protected MyResponse(Collection items, String nextPageToken) {
      super(items, nextPageToken);
    }
  }
  assertThat(Types.isCollectionResponseType(TypeToken.of(CollectionResponse.class))).isTrue();
  assertThat(Types.isCollectionResponseType(TypeToken.of(MyResponse.class))).isTrue();
  assertThat(Types.isCollectionResponseType(TypeToken.of(Collection.class))).isFalse();
}