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