Added IndirectContainer test: testPostResource.

Please follow formatting like rest of source, helps with reviews and ability to automerge now and in the future
(remove leading and trailing whitespace on conditional)