@Override
    public WorkAttempt tryDoWork() {
        retrieveCookieIfNecessary();
        return doWork();
    }
@Test
    void workStatusShouldDeriveFromWorkTypeForDeniedWork() {
        work = mock(DeniedAgentWork.class);
        prepareForWork();
        assertThat(agentController.tryDoWork()).isEqualTo(WorkAttempt.NOTHING_TO_DO);
    }