District implements AddressEntity, Comparable<District> { @Override public String getCode() { return code; } District(String code, String name); @Override String getCode(); @Override String getName(); String getProvinceCode(); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); @Override int compareTo(District that);  }
@Test public void getField() { assertEquals("1001", bangkok.getCode()); assertEquals("พระนคร", bangkok.getName()); }