withTestApplication(testedApplication) { handleRequest(HttpMethod.Post, "/deal") { addHeader(HttpHeaders.ContentType, ContentType.Application.Json.toString()) setBody( NewDeal( name = "test deal0", north = "AKQJ AKQJ AKQJ A", east = "AKQJ AKQJ AKQJ A", south = "AKQJ AKQJ AKQJ A", west = "AKQJ AKQJ AKQJ A" ).let { mapper.writeValueAsString(it) } ) }.apply { assertEquals(HttpStatusCode.Created, response.status()) }