### Question:
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected void prepareExecution(RedbeamsEvent payload, Map<Object, Object> variables) { dbStackStatusUpdater.updateStatus(payload.getResourceId(), DetailedDBStackStatus.STOP_IN_PROGRESS); } StopDatabaseServerAction();   }### Answer:
@Test public void shouldUpdateStatusOnPrepare() { RedbeamsEvent event = new RedbeamsEvent(RESOURCE_ID); victim.prepareExecution(event, null); verify(dbStackStatusUpdater).updateStatus(RESOURCE_ID, DetailedDBStackStatus.STOP_IN_PROGRESS); }