assertOS("Windows Web Server 2008 R2 SP1 with SQL Server 2008 R2 Web Edition", OsFamily.WINDOWS,
"2008 R2 SP1 with SQL Server 2008 R2 Web Edition", true);
}
private void assertOS(String name, OsFamily expectedFamily, String expectedVersion, boolean expectedIs64bit) {
StandardDrive drive = standardDrive(name);
WellKnownImage image = function.apply(drive);
assertEquals(image.getOsFamily(), expectedFamily, String.format("Parsing family for [%s]:", name));
assertEquals(image.getOsVersion(), expectedVersion, String.format("Parsing version for [%s]:", name));
assertEquals(image.is64bit(), expectedIs64bit, String.format("Parsing arch for [%s]:", name));