### Question:
AuthServiceResolver { @NotNull public AuthService getAuthService(AuthorisationType authorisationType) { switch (authorisationType) { case CONSENT: return aisAuthService; case PIS_CREATION: return pisAuthService; case PIS_CANCELLATION: return pisCancellationAuthService; default: throw new IllegalArgumentException("Unknown authorisation type: " + authorisationType); } }  @NotNull AuthService getAuthService(AuthorisationType authorisationType);  }### Answer:
@Test void getAuthService() { assertEquals(aisAuthService.getClass(), authServiceResolver.getAuthService(AuthorisationType.CONSENT).getClass()); assertEquals(pisAuthService.getClass(), authServiceResolver.getAuthService(AuthorisationType.PIS_CREATION).getClass()); assertEquals(pisCancellationAuthService.getClass(), authServiceResolver.getAuthService(AuthorisationType.PIS_CANCELLATION).getClass()); }