### Question:
JsonObjectArrayWrapper extends TypedJsonArray<T> { @Override protected JsonElement to(T value) { return value.getJson(); } JsonObjectArrayWrapper(); @Override O wrap(JsonArray jsonElement); O wrap(JsonArray jsonArray, Class<T> cls); JsonObjectArrayWrapper<T> withWrapperType(Class<T> cls); @Override boolean contains(Object o);  }### Answer:
@Test public void testTo() throws Exception { arrayWrapper.withWrapperType(TestWrapper.class); arrayWrapper.add(new TestWrapper().withName("value1")); arrayWrapper.add(new TestWrapper().withName("value2")); assertThat(arrayWrapper.get(0).getTheName()).isEqualTo("value1"); assertThat(arrayWrapper.get(1).getTheName()).isEqualTo("value2"); }