	@Test
	public void exceptionToStatus() {

		// Specific business rule violations:
		_assertStatus(HttpStatus.NOT_FOUND, new BankService.ClientNotFoundExc());
		_assertStatus(HttpStatus.NOT_FOUND, new Client.NotManagedAccountExc());
		_assertStatus(HttpStatus.FORBIDDEN, new Client.NotOwnerExc());
		_assertStatus(HttpStatus.FORBIDDEN, new Client.WithoutRightExc());

		// General business rule violations:
		_assertStatus(HttpStatus.BAD_REQUEST, new Amount.RangeExc());
		_assertStatus(HttpStatus.BAD_REQUEST, new BankService.DeleteExc());
		_assertStatus(HttpStatus.BAD_REQUEST, new BankService.UsernameExc());
		_assertStatus(HttpStatus.BAD_REQUEST, new Client.AmountExc());
		_assertStatus(HttpStatus.BAD_REQUEST, new Client.DoubleManagerExc());
		_assertStatus(HttpStatus.BAD_REQUEST, new Client.MinimumBalanceExc());

		// Rule violations in the rest-interface layer:
		_assertStatus(HttpStatus.BAD_REQUEST, new ClientCreateWithIdExc());

		// other errors:
		_assertStatus(HttpStatus.INTERNAL_SERVER_ERROR, new IllegalAccessException());
	}