public SerializableFunction<Row, T> getFromRowFunction() {
    return fromRowFunction;
  }
@Test
  public void testReversedOneOfRowToProto() {
    ProtoDynamicMessageSchema schemaProvider = schemaFromDescriptor(ReversedOneOf.getDescriptor());
    SerializableFunction<Row, DynamicMessage> fromRow = schemaProvider.getFromRowFunction();
    assertEquals(
        REVERSED_ONEOF_PROTO_INT32.toString(), fromRow.apply(REVERSED_ONEOF_ROW_INT32).toString());
    assertEquals(
        REVERSED_ONEOF_PROTO_BOOL.toString(), fromRow.apply(REVERSED_ONEOF_ROW_BOOL).toString());
    assertEquals(
        REVERSED_ONEOF_PROTO_STRING.toString(),
        fromRow.apply(REVERSED_ONEOF_ROW_STRING).toString());
    assertEquals(
        REVERSED_ONEOF_PROTO_PRIMITIVE.toString(),
        fromRow.apply(REVERSED_ONEOF_ROW_PRIMITIVE).toString());
  }