@Test
public void testWriteLicenseHeaderAndComment()
    throws IOException
{

    ByteArrayOutputStream out = new ByteArrayOutputStream();
    PropertyFile file = PropertiesFactory.eINSTANCE.createPropertyFile();
    file.setLicenseHeader("apache license\nv3");
    Property property = PropertiesFactory.eINSTANCE.createProperty();
    property.setKey("key");
    property.setValue("value");
    property.setComment("comment");
    file.getProperties().add(property);
    getFixture().getContents().add(file);
    getFixture().doSave(out, null);
    String result = out.toString("UTF-8");
    assertEquals("#apache license\n#v3\n\n#comment\nkey = value\n", result);
}