val response = resource.request()
.path("/test")
.get<TestClass>()
val test: TestClass = response.body
val response = resource.request()
.path("/test")
.post(test)
var response = resource.request()
.path("/test")
.queryParam("hi", "my", "values")
.get<TestClass>()
var response = resource.request()
.path("/test")
.queryParam("hi", "my", "values")
.get<TestClass>()
val entity = resource.request()
.header("Authorization", "noAuth")
.path("/test/list")
.get<List<TestClass>>()