@Override
  protected byte[] serialize(Object object) {
    var bytes = new ByteArrayOutputStream();
    try (var output = new ObjectOutputStream(bytes)) {
      output.writeObject(object);
    } catch (IOException e) {
      throw new UncheckedIOException("Failed to serialize " + object.getClass(), e);
    }
    return bytes.toByteArray();
  }
@Test(dataProvider = "copier")
  public void serializable_fail(JavaSerializationCopier copier) {
    assertThrows(UncheckedIOException.class, () -> copier.serialize(new Object()));
  }