@Test
public void getBaseSiteMapLength() {

    entries.clear();
    final String xml = model.buildUrlSet(entries, xmlns);
    final int length = xml.length();
    final int diff = "</urlset>".length() - " /".length();
    final int baseSiteMapLength = model.getBaseSiteMapLength();
    assertTrue(length + diff == baseSiteMapLength || length == baseSiteMapLength);
}