/** * Verifies that for the given {@code Coder<T>} and values of type {@code T}, the structural * values are equal if and only if the encoded bytes are equal. */ public static <T> void structuralValueConsistentWithEquals(Coder<T> coder, T value1, T value2) throws Exception { for (Coder.Context context : ALL_CONTEXTS) { CoderProperties.structuralValueConsistentWithEqualsInContext(coder, context, value1, value2); } }