Feature: The CRM system is able to send information about new Clients to the service Background: Given there exist following clients: | clientId | name | initialBalance | currentBalance | | 018edd2e-894a-78d7-b10c-16e05ca933a3 | Kacper | 10000 | 5000 | Scenario: CRM is able to create new clients Given the request has the following body: """ { "clientId": "018edd37-c145-7143-ba91-c191084e4fba", "name": "Jan", "balance": 100000 } """ When I send a POST request to "/clients" Then the response status should be 201 And client with id "018edd37-c145-7143-ba91-c191084e4fba" should exist And client with id "018edd37-c145-7143-ba91-c191084e4fba" should have balance of 100000 Scenario: CRM should not be able to override existing user Given the request has the following body: """ { "clientId": "018edd2e-894a-78d7-b10c-16e05ca933a3", "name": "Kacper", "balance": 100000 } """ When I send a POST request to "/clients" Then the response status should be 409 And client with id "018edd2e-894a-78d7-b10c-16e05ca933a3" should exist