MultiPartBinarySerializer implements Serializer<MultiPart<Param>> { static Serializer<MultiPart<?>> getSerializer(Class<?> clazz){ return BINARY_SERIALIZERS.get(clazz); }  void serialize(MultiPart<Param> multipart, Charset charset, OutputStream out);  }
@Test public void getSerializerShouldReturnFileSerializerForFile(){ assertSame(MultiPartFileSerializer.INSTANCE, MultiPartBinarySerializer.getSerializer(File.class)); }
@Test public void getSerializerShouldReturnInputStreamSerializerForInputStream(){ assertSame(MultiPartInputStreamSerializer.INSTANCE, MultiPartBinarySerializer.getSerializer(InputStream.class)); }