@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    URIStatus uriStatus = (URIStatus) o;
    return Objects.equals(mInfo, uriStatus.mInfo) && Objects
        .equals(mCacheContext, uriStatus.mCacheContext);
  }
@Test
  public void testEquals() throws Exception {
    FileInfo fileInfo = FileInfoTest.createRandom();
    URIStatus uriStatus1 = new URIStatus(fileInfo);
    URIStatus uriStatus2 = new URIStatus(fileInfo);
    assertTrue(uriStatus1.equals(uriStatus2));
    assertEquals(uriStatus1.hashCode(), uriStatus2.hashCode());
  }