@Test
public void testCodeList() throws Exception {

    final Collection<String> codelist1 = localizations.codelist("gmd:codelist1");
    assertArrayEquals(codelist1.toString(), new String[]{"code1", "code2"}, sort(codelist1.toArray()));
    final Collection<String> codelist2 = localizations.codelist("gmd:codelist2");
    assertArrayEquals(codelist2.toString(), new String[]{"code1"}, sort(codelist2.toArray()));
}