@Test
public void addDbs() throws Exception {

    List<DataBaseInfo> list = Lists.newArrayList(DataBaseInfo.builder().id(1L).dbname("name").build());
    String requestJson = JSONObject.toJSONString(list);
    mockMvc.perform(MockMvcRequestBuilders.post("/db/addDbs")
            .contentType(MediaType.APPLICATION_JSON_UTF8)
            .content(requestJson)
            .accept(MediaType.APPLICATION_JSON_UTF8))
            .andExpect(MockMvcResultMatchers.status().isOk())
            .andDo(MockMvcResultHandlers.print());
}