@Test
public void testAdaptation() throws Exception {

    ServerInfo reference = ServerInfoResolvers.fromAwsInstanceTypes().resolve("m4.4xlarge").get();
    ServerInfo adapted = ServerInfoResolvers.adapt(
            ServerInfoResolvers.fromAwsInstanceTypes(),
            cpus -> cpus - 2,
            memoryGB -> memoryGB - 1,
            diskGB -> diskGB - 10
    ).resolve("m4.4xlarge").get();
    assertThat(adapted.getCpus()).isEqualTo(reference.getCpus() - 2);
    assertThat(adapted.getMemoryGB()).isEqualTo(reference.getMemoryGB() - 1);
    assertThat(adapted.getStorageGB()).isEqualTo(reference.getStorageGB() - 10);
}