ExifHelper { boolean areDatesEqual(@Nullable InputStream inputStream, @NonNull InputStream duplicateInputStream) { boolean equals = false; try { String originalFileDate = getExifDate(inputStream); String duplicatedFileDate = getExifDate(duplicateInputStream); equals = originalFileDate != null && originalFileDate.equals(duplicatedFileDate); } catch (IOException e) { Timber.e(e); } return equals; } @Inject  ExifHelper();   }
@Test public void areDatesEqualShouldReturnFalseForNullInputStream() { ExifHelper helper = new ExifHelper(); boolean equal = helper.areDatesEqual(null, mockInputStrem); assertFalse(equal); }