@Test(expected = RuntimeException.class)
public void should_throw_a_runtime_exception_if_the_po_file_does_not_contains_the_language() throws Exception {

    File poFile = directory.newFile();
    write(poFile.toPath(), new String(readResource("/i18n/simple.po")).replace("Language: francais", "").getBytes());
    assertThat(new String(languagePackFactory.create(poFile).toJson()))
            .isEqualTo("{\"francais\":{\"A page\":[\"Une page\",\"Des pages\"]}}");
}