Add new withMockServer test resource method
#352
Merged
withMockServer test resource method
#352