### Question:
MaybeRequestDecorator extends RequestDecorator<T> { @Override protected Response<T> parseNetworkResponse(final NetworkResponse response) { if (response.statusCode == HttpURLConnection.HTTP_CREATED) { return Response.success(object, HttpHeaderParser.parseCacheHeaders(response)); } return super.parseNetworkResponse(response); } MaybeRequestDecorator(@NonNull final Request<T> request, @NonNull final T object); @NonNull T getObject();  }### Answer:
@Test public void testParseNetworkResponseWithCreatedStatus() { final NetworkResponse response = new NetworkResponse(HttpURLConnection.HTTP_CREATED, new byte[0], Collections.<String, String>emptyMap(), false); final Response<Object> r = decorator.parseNetworkResponse(response); assertEquals("Failed to object in response", DEFAULT_OBJECT, r.result); }