public void testFindFoldersNoRootFolder() throws ServiceCallException, HttpErrorException
{
FindFolderResponseType findFolderResponse = mock(FindFolderResponseType.class);
ArrayOfResponseMessagesType findFolderArrayOfResponseMessages = mock(ArrayOfResponseMessagesType.class);
FindFolderResponseMessageType findFolderResponseMessage = mock(FindFolderResponseMessageType.class);
FindFolderType findFolder =
FindFolderHelper.getFindFoldersRequest(DistinguishedFolderIdNameType.MSGFOLDERROOT);
when(getService().findFolder(likeThis(findFolder), eq(getDefaultUser()))).thenReturn(findFolderResponse);
when(findFolderResponse.getResponseMessages()).thenReturn(findFolderArrayOfResponseMessages);
when(findFolderArrayOfResponseMessages.getFindFolderResponseMessageArray())
.thenReturn(new FindFolderResponseMessageType[]{findFolderResponseMessage});