We am writing Integration testcases for Rest API, where in we are validating the type of all the properties of Response DTO. In the DTO we have one property of type java.util.Date. However, when it try to use
.andExpect(jsonPath("$.testDate", isA(Date.class)))
it fails our test case with
Expected: is an instance of java.util.Date but: <2343240000L> is a java.lang.Long
Please let me know How can we validate the Date type using integration test cases.