adding integration tests for inbound endpoint

Please use appropriate context-specific exceptions rather than throwing generic exceptions upwards in the invocation hierarchy. This does no good in terms of being able to cleanly handle specific exceptions and perform certain actions depending on the context within the upstream code.