@Test
public void testGetServerInfos() {

    when(serverInfoResolver.resolveAll()).thenReturn(Collections.singletonList(createServerInfo()));
    testClient.get().uri(VmManagementEndpoint.PATH_LIST_SERVER_INFOS).exchange()
            .expectBody(LIST_SERVER_INFOS_TREF)
            .value(serverInfos -> assertThat(serverInfos).hasSize(1));
    verify(serverInfoResolver, times(1)).resolveAll();
}