public static ClusterAllocationDiskSettings create(boolean enabled, String low, String high, String floodStage) {
        if (!enabled) {
            return ClusterAllocationDiskSettings.create(enabled, null);
        }
        return ClusterAllocationDiskSettings.create(enabled, createWatermarkSettings(low, high, floodStage));
    }
@Test
    public void createAbsoluteValueWatermarkSettingsWithoutFloodStage() throws Exception {
        ClusterAllocationDiskSettings clusterAllocationDiskSettings = ClusterAllocationDiskSettingsFactory.create(true, "10Gb", "5Gb", "");

        assertThat(clusterAllocationDiskSettings).isInstanceOf(ClusterAllocationDiskSettings.class);
        assertThat(clusterAllocationDiskSettings.ThresholdEnabled()).isTrue();
        assertThat(clusterAllocationDiskSettings.watermarkSettings()).isInstanceOf(AbsoluteValueWatermarkSettings.class);

        AbsoluteValueWatermarkSettings settings = (AbsoluteValueWatermarkSettings) clusterAllocationDiskSettings.watermarkSettings();

        assertThat(settings.type()).isEqualTo(WatermarkSettings.SettingsType.ABSOLUTE);
        assertThat(settings.low()).isInstanceOf(ByteSize.class);
        assertThat(settings.low().getBytes()).isEqualTo(10737418240L);
        assertThat(settings.high()).isInstanceOf(ByteSize.class);
        assertThat(settings.high().getBytes()).isEqualTo(5368709120L);
        assertThat(settings.floodStage()).isNull();
    }