@Test
  public void testToString() {
    ServerName hsa1 = ServerName.valueOf("localhost", 1234, -1L);
    HRegionLocation hrl1 = new HRegionLocation(RegionInfoBuilder.FIRST_META_REGIONINFO, hsa1);
    System.out.println(hrl1.toString());
  }
HRegionLocations are equal if they have the same 'location' -- i.e. host and port -- even if
they are carrying different regions. Verify that is indeed the case.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestHRegionLocation.java