Serializer { public <T> SerializationStrategy<T> strategy(Class<T> type) { return mFactory.strategy(type); } Serializer(SerializationStrategy.Factory factory); SerializationStrategy.Factory serializationStrategyFactory(); SerializationStrategy<T> strategy(Class<T> type);  }
@Test public void shouldSuccessfullyDeserializeStringToList() { String jsonString = getJsonStrings(); List<Cinema> cinemas = Arrays .asList(mSerializer.strategy(Cinema[].class).deserialize(jsonString)); assertNotNull(cinemas); assertEquals(1, cinemas.size()); assertCinema(cinemas.get(0)); }