    @Test
    public void throwsAnExceptionOnEmptyFiles() throws Exception {

        try {
            factory.build(emptyFile);
            failBecauseExceptionWasNotThrown(ConfigurationParsingException.class);
        } catch (ConfigurationParsingException e) {
            assertThat(e.getMessage())
                    .containsOnlyOnce(" * GJEXConfiguration at " + emptyFile.toString() + " must not be empty");
        }
    }