Added InfrastructureApi unit tests

This method generates a POST with a body. You should also verify the generated content-type header and the generated body.