@Test
public void testConvertToDate() {

    long time = 1587665081L;
    String dateTime = convertToDate(time);
    assertNotNull(dateTime);
    assertTrue(dateTime.contains("2020"));
    assertTrue(dateTime.contains("04"));
    assertTrue(dateTime.contains("23"));
    assertTrue(dateTime.contains("18"));
    assertTrue(dateTime.equalsIgnoreCase("2020-04-23T18:04:41.000+0000"));
}