@Test
public void should_return_true_if_form_is_ready() throws Exception {

    User user = new User();
    user.setRole(User.Role.CP.getValue());
    Mockito.when(PrimeroAppConfiguration.getCurrentUser()).thenReturn(user);
    CaseForm cpCaseForm = createCPCaseForm();
    when(caseFormDao.getCaseForm(PrimeroAppConfiguration.MODULE_ID_CP, PrimeroAppConfiguration.getApiBaseUrl()))
            .thenReturn(cpCaseForm);
    assertTrue(caseFormService.isReady());
}