@Test
public void testSerializePropertyFile() {

    PropertyFile file = PropertiesFactory.eINSTANCE.createPropertyFile();
    Property property = PropertiesFactory.eINSTANCE.createProperty();
    property.setComment("comment1");
    property.setKey("key1");
    property.setValue("value1");
    file.getProperties().add(property);
    Property property2 = PropertiesFactory.eINSTANCE.createProperty();
    property2.setComment("comment2");
    property2.setKey("key2");
    property2.setValue("value2");
    file.getProperties().add(property2);
    StringBuilder result = new StringBuilder();
    getFixture().serialize(file, result, 2);
    String expected = "{\"properties\":[{\"key\":\"key1\",\"value\":\"value1\",\"comment\":\"comment1\"},{\"key\":\"key2\",\"value\":\"value2\",\"comment\":\"comment2\"}]}";
    assertEquals(expected, result.toString());
}