@Test
public void testFromServerInfoMapping() throws Exception {

    ServerInfo m42xl = ServerInfoResolvers.fromAwsInstanceTypes()
            .resolve(AwsInstanceType.M4_2XLarge.getDescriptor().getId())
            .get();
    ResourceDimension actual = ResourceDimensions.fromServerInfo(m42xl);
    AwsInstanceDescriptor descriptor = AwsInstanceType.M4_2XLarge.getDescriptor();
    assertThat(actual.getCpu()).isEqualTo(descriptor.getvCPUs());
    assertThat(actual.getMemoryMB()).isEqualTo(descriptor.getMemoryGB() * 1024);
    assertThat(actual.getDiskMB()).isEqualTo(descriptor.getStorageGB() * 1024);
    assertThat(actual.getNetworkMbs()).isEqualTo(descriptor.getNetworkMbs());
}