@Test
  public void shouldValidateMovementDateOnSelectionAndShowToastIfInvalid()
      throws ParseException, LMISException {
    viewHolder.populate(viewModel, stockCard);

    StockMovementViewHolder.MovementDateListener movementDateListener =
        viewHolder.new MovementDateListener(viewModel, new Date());
    movementDateListener.onDateSet(mock(DatePicker.class), 2015, 11, 10);
    assertNotNull(ShadowToast.getLatestToast());
  }
  @Test
  public void shouldValidateMovementDateOnSelectionAnd() throws ParseException, LMISException {
    viewHolder.populate(viewModel, stockCard);

    StockMovementViewHolder.MovementDateListener movementDateListener =
        viewHolder
        .new MovementDateListener(viewModel, DateUtil.parseString("11-11-2015", "MM-dd-YYYY"));
    movementDateListener.onDateSet(mock(DatePicker.class), 2015, 10, 15);
    assertEquals("15 Nov 2015", viewHolder.txMovementDate.getText().toString());
    assertEquals("15 Nov 2015", viewModel.getMovementDate());
    assertNull(ShadowToast.getLatestToast());
  }