Assert that response body is empty list with rest-assured
The problem is (probably) that REST Assured returns a List and not an array (and Hamcrest differentiate between the two). You can do:
.body("", Matchers.hasSize(0))
or
.body("$", Matchers.hasSize(0))
or
.body("isEmpty()", Matchers.is(true))
Inspired by what @Johan said I tried this and I think it tells more to reader than other suggestions.
.body("", equalTo(Collections.emptyList()))