@Test
public void getAsIntFromDecimal() {

    AbstractNode<N> node = parentWithChildDouble(1.0);
    assertThat(node.getAsInt("child")).isEqualTo(1);
    node = parentWithChildBigDecimal(new BigDecimal("1E+1"));
    assertThat(node.getAsInt("child")).isEqualTo(10);
    AbstractNode<N> nodeWithFraction = parentWithChildBigDecimal(BigDecimal.valueOf(1.1));
    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> nodeWithFraction.getAsInt("child"));
}