the test method method says should not save encounter type of locked but you are doing the opposite, you are unlocking it checking that actually the exception gets thrown