Don't use anonymous classes in connection tests