public static SchemaBuilder builder(final Schema schema) {
    requireDecimal(schema);
    return builder(precision(schema), scale(schema));
  }
@Test
  public void shouldFailIfBuilderWithScaleGTPrecision() {
    // When:
    final Exception e = assertThrows(
        SchemaException.class,
        () -> builder(1, 2)
    );

    // Then:
    assertThat(e.getMessage(), containsString("DECIMAL precision must be >= scale"));
  }