@Test
public void testSaveCaptureTimeInSharedPreferences() {

    long time1 = System.currentTimeMillis();
    photoCaptureHelper.setCaptureTime();
    long time2 = System.currentTimeMillis();
    long time = application.getSharedPreferences().getLong("capture_start_time", 0);
    assertTrue(time >= time1 && time <= time2);
}