+ 1 * mockDmiRestClient.postOperationWithJsonData(expectedUrl, 'testJsonbody', _ as HttpHeaders)
+ }
+
+ def 'Call get resource from dmi.'() {
+ given: 'expected url'
+ def expectedUrl = 'testDmiBasePath/dmi/api/v1/ch/testCmhandle/modules'
+ when: 'get resource data is called to dmi'
+ objectUnderTest.getResourceFromDmi('testDmiBasePath',
+ 'testCmhandle',
+ 'modules')
+ then: 'the post operation is executed with the correct URL'
+ 1 * mockDmiRestClient.postOperation(expectedUrl, _ as HttpHeaders)