### Question:
DataResponse extends AgResponse { public static <T> DataResponse<T> forType(Class<T> type) { return new DataResponse<>(type); } DataResponse(Class<T> type); static DataResponse<T> forObject(T object); @SuppressWarnings({"unchecked", "rawtypes"}) static DataResponse<T> forObjects(List<T> objects); static DataResponse<T> forType(Class<T> type); Class<T> getType(); Encoder getEncoder(); void setObjects(List<? extends T> objects); void setObject(T object); List<T> getObjects(); Collection<T> getIncludedObjects(); Collection<U> getIncludedObjects(Class<U> type, String path); void setEncoder(Encoder encoder); void writeData(JsonGenerator out);  }### Answer:
@Test public void testForType() { DataResponse<Tr> response = DataResponse.forType(Tr.class); assertNotNull(response); List<Tr> objects = asList(new Tr(), new Tr()); response.setObjects(objects); assertEquals(objects, response.getObjects()); }