@Test
public void should_convert_translation_into_json() throws Exception {

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