PatchSetSerializer implements Serializer<PatchSet> { @Override public void close() {} PatchSetSerializer();  PatchSetSerializer(ObjectWriter objectWriter); @Override void configure(Map<String, ?> configs, boolean isKey); @Override byte[] serialize(String topic, PatchSet patch); @Override void close();  }
@Test public void close() { underTest.close(); verifyZeroInteractions(objectWriter); }