LutronHomeWorksAddress { @Override public String toString() { StringBuffer temp = new StringBuffer("["); for (int i = 0; i < addressElements.length; i++) { temp.append(String.format("%02d", addressElements[i])); if (i != addressElements.length - 1) { temp.append(":"); } } temp.append("]"); return temp.toString(); } LutronHomeWorksAddress(String addressRepresentation); @Override String toString(); boolean isValidKeypadAddress(); boolean isValidDimmerAddress(); boolean isValidGrafikEyeAddress(); boolean isValidGrafikEyeSingleZoneAddress(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testNormalizedAddressFormat() throws InvalidLutronHomeWorksAddressException { Assert.assertEquals("[01:06:01:03:02]", new LutronHomeWorksAddress("[1:6:1:3:2]").toString()); Assert.assertEquals("[01:04:01:02]", new LutronHomeWorksAddress("1:4:1:2").toString()); }