I am trying to pass null as the content type for JUnit mockMvc but its failing
Object obj =null;
MvcResult result = mockMvc.perform(post("/mgr/v1/processEvent")
.contentType(MediaType.APPLICATION_JSON)
.content(String.valueOf(obj))
.accept(MediaType.APPLICATION_JSON))
.andDo(print())
.andExpect(status().is4xxClientError()).andReturn();
its not going inside the controller call
Please help