### Question:
MovieServiceImpl implements MovieService { @Override public boolean isAuthorizedOnMovie(final String account, final UUID movieId) throws MovieNotFoundException { final MovieDto movieDto = getMovie(movieId); return isAuthorizedOnMovie(account, movieDto); }  @Override MoviePagedResultModel searchMovies(final String text, final int pageNumber, final String sortField,
        final boolean isAscending); @Override MovieResultModel createMovie(final MovieDto movieDto); @Override MovieDto getMovie(final UUID id); @Override boolean isAuthorizedOnMovie(final String account, final UUID movieId); @Override boolean isAuthorizedOnMovie(final String account, final MovieDto movieDto); @Override MovieResultModel updateMovie(final MovieDto movieDto); @Override void deleteMovie(final UUID movieId); @Override void likeMovie(final String account, final UUID movieId); @Override void unlikeMovie(final String account, final UUID movieId); @Override boolean hasLiked(final String account, final UUID movieId);  }### Answer:
@Test public void test_isAuthorizedOnMovie_withEntity_true() throws Exception { final String account = "test_account"; final MovieDto movieDto = new MovieDto(); movieDto.setCreator(account); final boolean result = movieService.isAuthorizedOnMovie(account, movieDto); assertTrue(result); }
@Test public void test_isAuthorizedOnMovie_withEntity_false() throws Exception { final String account = "test_account"; final MovieDto movieDto = new MovieDto(); movieDto.setCreator("other_account"); final boolean result = movieService.isAuthorizedOnMovie(account, movieDto); assertFalse(result); }