public static <T extends Serializable> SerializableCoder<T> of(TypeDescriptor<T> type) {
    @SuppressWarnings("unchecked")
    Class<T> clazz = (Class<T>) type.getRawType();
    return new SerializableCoder<>(clazz, type);
  }
@Test
  public void coderChecksForEquals() throws Exception {
    SerializableCoder.of(ProperEquals.class);
    expectedLogs.verifyNotLogged("Can't verify serialized elements of type");
  }