title: Return statement in test method
body: <p>How should I correctly return element in my test method. I have problem in my test.</p>
  
  <pre><code>when(teamService.createTeam(teamDto)).thenReturn();
  </code></pre>
  
  <p>In this line i don't know how to wrote correctly return statement.What should be in bracket after thenReturn.
  My method cretate team look like this:</p>
  
  <pre><code>@Transactional
      public Team createTeam(TeamDto teamDto) {
          Assert.notNull(teamDto, "Object can't be null!");
          try {
              Assert.notNull(teamDto.getName());
              return teamRepository.save(modelMapper.map(teamDto, Team.class));
          } catch (Exception e) {
              throw new CreateEntityException(e);
          }
      }
  </code></pre>
  
  <p>And in this method i return Team object but when i add Team i have expression expected.</p>