@Test
public void testWriteNoName() {

    final Agreement agreement = new Agreement();
    final String xml = createXML(agreement);
    
    assertTrue(Utils.isNullOrEmpty(xml));
    final Agreement agreement2 = new Agreement();
    agreement2.setType("illegal");
    final String xml2 = createXML(agreement2);
    
    assertTrue(Utils.isNullOrEmpty(xml2));        
}