@Test
public void writeNameOnly() {

    final Agreement agreement = new Agreement("name7");
    final String xml = createXML(agreement);
    
    assertFalse(Utils.isNullOrEmpty(xml));
    assertTrue(countElements(xml, "name") == 1);
    assertEquals(agreement.getName(), findElements(xml, "name").get(0).getTextContent());
    assertTrue(countElements(xml, "type") == 0);
}