### Question:
MtasApiServiceImpl implements MtasApiService { @Override public ResponseEntity<List<Mta>> getMtas(String spaceGuid) { List<DeployedMta> deployedMtas = deployedMtaDetector.detectDeployedMtasWithoutNamespace(getCloudFoundryClient(spaceGuid)); List<Mta> mtas = getMtas(deployedMtas); return ResponseEntity.ok() .body(mtas); }  @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 testGetMtas() { Mockito.when(deployedMtaDetector.detectDeployedMtasWithoutNamespace(Mockito.any())) .thenReturn(getDeployedMtas(mtas)); ResponseEntity<List<Mta>> response = testedClass.getMtas(SPACE_GUID); assertEquals(HttpStatus.OK, response.getStatusCode()); List<Mta> responseMtas = response.getBody(); assertEquals(mtas, responseMtas); }