### Question:
Address implements UnresolvedAddress { public String pretty() { return this.plainAddress.replaceAll("(.{6})", "$1-"); } Address(String prettyOrRaw, NetworkType networkType); static Address createFromRawAddress(String rawAddress); static Address createFromEncoded(String encodedAddress); static Address createFromPublicKey(String publicKey, NetworkType networkType); static boolean isValidPlainAddress(String plainAddress); static boolean isValidEncodedAddress(String encodedAddress); static Optional<String> validateEncodedAddress(String encodedAddress); static Optional<String> validatePlainAddress(String plainAddress); static Address generateRandom(NetworkType networkType); String plain(); NetworkType getNetworkType(); @Override String encoded(NetworkType networkType); String encoded(); String pretty(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test void testAddressWithSpacesCreation() { Address address = new Address("TBBVTI-NGPSB3-NCNMUY-GYU74V-ZAUNRY-UBOTF7-7YI ", NetworkType.TEST_NET); assertEquals("TBBVTI-NGPSB3-NCNMUY-GYU74V-ZAUNRY-UBOTF7-7YI", address.pretty()); }
@Test void testLowerCaseAddressCreation() { Address address = new Address("TBBVTI-NGPSB3-NCNMUY-GYU74V-ZAUNRY-UBOTF7-7yi ", NetworkType.TEST_NET); assertEquals("TBBVTI-NGPSB3-NCNMUY-GYU74V-ZAUNRY-UBOTF7-7YI", address.pretty()); }
@Test void addressInPrettyFormat() { Address address = new Address("TBBVTI-NGPSB3-NCNMUY-GYU74V-ZAUNRY-UBOTF7-7YI", NetworkType.TEST_NET); assertEquals("TBBVTI-NGPSB3-NCNMUY-GYU74V-ZAUNRY-UBOTF7-7YI", address.pretty()); }