content: package io.reflectoring.coderadar.rest.unit.module;
  
  import static org.mockito.Mockito.mock;
  
  import io.reflectoring.coderadar.projectadministration.ProjectIsBeingProcessedException;
  import io.reflectoring.coderadar.projectadministration.port.driver.module.delete.DeleteModuleUseCase;
  import io.reflectoring.coderadar.rest.module.DeleteModuleController;
  import io.reflectoring.coderadar.rest.unit.UnitTestTemplate;
  import org.junit.jupiter.api.Assertions;
  import org.junit.jupiter.api.Test;
  import org.mockito.Mockito;
  import org.springframework.http.HttpStatus;
  import org.springframework.http.ResponseEntity;
  
  class DeleteModuleControllerTest extends UnitTestTemplate {
  
    private final DeleteModuleUseCase deleteModuleUseCase = mock(DeleteModuleUseCase.class);
  
    @Test
    void testDeleteModule() throws ProjectIsBeingProcessedException {
      DeleteModuleController testSubject =
          new DeleteModuleController(deleteModuleUseCase, authenticationService);
  
      ResponseEntity<HttpStatus> responseEntity = testSubject.deleteModule(1L, 2L);
  
      Mockito.verify(deleteModuleUseCase, Mockito.times(1)).delete(1L, 2L);
  
      Assertions.assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    }
  }
  