@Test
public void testParsingOfThreshold() throws NoSuchFieldException, IllegalAccessException {

    configure(Collections.singletonMap("threshold", "40"));
    Field f = SourceValidator.class.getDeclaredField("threshold");
    f.setAccessible(true);
    final int threshold = (int) f.get(validator);
    assertThat(threshold == 40);
}