@Test
public void openShouldOpenDialogWithCurrentDateAndTime() {

    mTravelTimePicker.open(getSupportFragmentManager());
    final Dialog dialog = mTravelTimePicker.getDialog();
    final DatePicker picker = dialog.findViewById(R.id.travel_date);
    final Calendar calendar = Calendar.getInstance();
    assertThat(picker.getYear(), equalTo(calendar.get(Calendar.YEAR)));
    assertThat(picker.getMonth(), equalTo(calendar.get(Calendar.MONTH)));
    assertThat(picker.getDayOfMonth(), equalTo(calendar.get(Calendar.DAY_OF_MONTH)));
    final TimePicker timePicker = dialog.findViewById(R.id.travel_time);
    assertThat(timePicker.getCurrentHour(), equalTo(calendar.get(Calendar.HOUR_OF_DAY)));
    assertThat(timePicker.getCurrentMinute(), equalTo(calendar.get(Calendar.MINUTE)));
}