JaCoCoArgumentsBuilder { static Properties readProperties(String propertyFileName) { Properties props = new Properties(); try { props.load(JaCoCoArgumentsBuilder.class.getResourceAsStream(propertyFileName)); } catch (Exception e) { throw new IllegalStateException("Unable to load JaCoCo version to be used", e); } return props; } private  JaCoCoArgumentsBuilder(); static String getJaCoCoArgument(Configuration config);  }
@Test(expected = IllegalStateException.class) public void shouldFailIfNoJacocoPropertyFile() { JaCoCoArgumentsBuilder.readProperties("unexisting.properties"); }