@Test
public void getCompanies() throws Exception {

    List<CompanyInfo> comps = new ArrayList<>();
    comps.add(TestConfiguration.company());
    when(service.getCompanyInfo(TestConfiguration.QUOTE_NAME)).thenReturn(
            comps);
    mockMvc.perform(
            get("/v1/company/" + TestConfiguration.QUOTE_NAME).contentType(
                    MediaType.APPLICATION_JSON)).andExpect(status().isOk())
            .andDo(print())
            .andExpect(jsonPath("$").isArray());
}