@Test
public void should_create_an_empty_factory_whenever_localization_file_is_not_valid_json() throws Exception {

    writeByteArrayToFile(localizationFile, "invalid json".getBytes());
    assertThat(localizationFactory.generate(page))
            .isEqualTo(createFactory("{}"));
}