MultiPartEntityWriter implements EntityWriter { public int getContentLength(Request request) { return -1; } MultiPartEntityWriter();   MultiPartEntityWriter(Serializer<MultiPart<Param>> binarySerializer, Serializer<MultiPart<Param>> textSerializer); String getContentType(Request request); int getContentLength(Request request); void writeTo(Request request, OutputStream outputStream);  }
@Test public void getContentLengthShouldReturnMiunsOne(){ assertEquals(-1, toTest.getContentLength(null)); }