@Test
public void testDoNotWriteBOMForIsoMode()
    throws IOException
{

    ByteArrayOutputStream out = new ByteArrayOutputStream();
    PropertyFile file = PropertiesFactory.eINSTANCE.createPropertyFile();
    Property property = PropertiesFactory.eINSTANCE.createProperty();
    property.setKey("key");
    property.setValue("value");
    property.setComment("comment");
    file.getProperties().add(property);
    getFixture().getContents().add(file);
    Map<String, Object> options = new HashMap<String, Object>();
    options.put(PropertiesResourceImpl.OPTION_FILEMODE, JavaPropertyScanner.TYPE);
    getFixture().doSave(out, options);
    ByteOrderMark mark = ByteOrderMark.read(new ByteArrayInputStream(out.toByteArray()));
    assertNull("Must not write a BOM in iso mode", mark);
}