### Question:
MtasApiServiceImpl implements MtasApiService { protected ResponseEntity<List<Mta>> getAllMtas(String spaceGuid) { List<DeployedMta> deployedMtas = deployedMtaDetector.detectDeployedMtas(getCloudFoundryClient(spaceGuid)); return ResponseEntity.ok() .body(getMtas(deployedMtas)); }  @Override ResponseEntity<List<Mta>> getMtas(String spaceGuid); @Override ResponseEntity<Mta> getMta(String spaceGuid, String mtaId); @Override ResponseEntity<List<Mta>> getMtas(String spaceGuid, String namespace, String name);  }### Answer:
@Test void testGetAllMtas() { Mockito.when(deployedMtaDetector.detectDeployedMtas(Mockito.any())) .thenReturn(getDeployedMtas(mtas)); ResponseEntity<List<Mta>> response = testedClass.getMtas(SPACE_GUID, null, null); assertEquals(HttpStatus.OK, response.getStatusCode()); List<Mta> responseMtas = response.getBody(); assertEquals(mtas, responseMtas); }