### Question:
MapperUtils { public static UnresolvedAddress toUnresolvedAddress(String hex) { if (hex == null) { return null; } byte bit0 = ConvertUtils.getBytes(hex.substring(1, 3))[0]; if ((bit0 & 16) == 16) { return MapperUtils.toNamespaceId(ConvertUtils.reverseHexString(hex.substring(2, 18))); } else { return Address.createFromEncoded(hex); } } private  MapperUtils(); static NamespaceId toNamespaceId(String hex); static MosaicId toMosaicId(String hex); static UnresolvedMosaicId toUnresolvedMosaicId(String hex); static UnresolvedAddress toUnresolvedAddress(String hex); static Address toAddressFromRawAddress(String rawAddress); static BigInteger fromHexToBigInteger(String hex); static String fromBigIntegerToHex(BigInteger value); static Address toAddress(String encodedAddress); static String getIdAsHex(UnresolvedMosaicId id);  }### Answer:
@Test void toUnresolvedAddressFromNamespace() { Assertions.assertNull(MapperUtils.toUnresolvedAddress(null)); NamespaceId namespaceId = NamespaceId.createFromName("some.name"); Assertions.assertEquals( "91D9E338F78767ED95000000000000000000000000000000", namespaceId.encoded(networkType)); Assertions.assertEquals( namespaceId.encoded(networkType), MapperUtils.toUnresolvedAddress(namespaceId.encoded(networkType)).encoded(networkType)); }
@Test void toUnresolvedAddressFromAddress() { Assertions.assertNull(MapperUtils.toUnresolvedAddress(null)); Address address = Address.generateRandom(networkType); Assertions.assertEquals(address, MapperUtils.toUnresolvedAddress(address.encoded(networkType))); }