@Test
public void shouldReturnEmptyDependencies() throws Exception {

    when(externalDependencies.getDependencies()).thenReturn(emptyList());
    mockMvc.perform(get("/internal/dependencies").accept(APPLICATION_JSON))
            .andExpect(status().is2xxSuccessful())
            .andExpect(
                    jsonPath("@.dependencies").isArray()
            )
            .andExpect(
                    jsonPath("@.dependencies").isEmpty()
            );
}