public static DNMappingAddress dnMappingAddress(String dn) {
        return new DNMappingAddress(dn);
    }
@Test
    public void testDnMappingAddressMethod() {
        String dn = "1";
        MappingAddress mappingAddress = MappingAddresses.dnMappingAddress(dn);
        DNMappingAddress dnMappingAddress =
                checkAndConvert(mappingAddress,
                                MappingAddress.Type.DN,
                                DNMappingAddress.class);
        assertThat(dnMappingAddress.name(), is(equalTo(dn)));
    }