@Test
public void testGetOldEntityWithOutDomainId() throws Exception {

  TimelineEntity entity = dataManaer.getEntity(
      "OLD_ENTITY_TYPE_1", "OLD_ENTITY_ID_1", null,
      UserGroupInformation.getCurrentUser());
  Assert.assertNotNull(entity);
  Assert.assertEquals("OLD_ENTITY_ID_1", entity.getEntityId());
  Assert.assertEquals("OLD_ENTITY_TYPE_1", entity.getEntityType());
  Assert.assertEquals(
      TimelineDataManager.DEFAULT_DOMAIN_ID, entity.getDomainId());
}