### Question:
MonthlyStockCountAlert implements NotificationMessage { @Override public void onClick(Context context) { Log.i("Monthly Stock counter alert clicked", getMessage()); if (!disabled) { Intent intent = new Intent(context, AdjustmentsActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Bundle data = new Bundle(); data.putString(AdjustmentsActivity.ADJUSTMENT_REASON, AdjustmentReason.PHYSICAL_COUNT_TEXT); intent.putExtras(data); context.startActivity(intent); } } MonthlyStockCountAlert();  MonthlyStockCountAlert(Date date); @Override String getMessage(); @Override void onClick(Context context); Date getDateCreated(); boolean isDisabled(); void setDisabled(boolean disabled); static final String DATE_CREATED; }### Answer:
@Test public void shouldNavigateToAdjusmentPageOnClick() throws Exception { Calendar calendar = Calendar.getInstance(); calendar.set(2025, Calendar.JULY, 27); MonthlyStockCountAlert alert = new MonthlyStockCountAlert(calendar.getTime()); alert.onClick(Robolectric.application); MessagesActivity activity = buildActivity(MessagesActivity.class).create().get(); Intent startedIntent = shadowOf(activity).getNextStartedActivity(); Assert.assertThat(startedIntent, is(notNullValue())); assertThat(AdjustmentsActivity.class.getName(), is(startedIntent.getComponent().getClassName())); }