@Test
public void setSupports() {

    Platform platform = new Platform("ubuntu", "18.04");
    cookbookConfiguration.setSupports(platform);
    assertEquals("ubuntu", cookbookConfiguration.getSupports().getName());
    assertEquals("18.04", cookbookConfiguration.getSupports().getVersion());
    assertEquals(platform, cookbookConfiguration.getSupports());
    assertTrue(cookbookConfiguration.hasPlatform(new HashSet<>(Arrays.asList("ubuntu", "windows"))));
    assertTrue(cookbookConfiguration.hasPlatformFamily(new HashSet<>(Arrays.asList("debian", "windows"))));
}