Ensuring exception contains correct behavior type.