public static FormationFilterDefinition parseFormationFilterDefinition(String definition) {

        String[] tokens = definition.split(",");

        Distance dist = Distance.ofNauticalMiles(parseDouble(tokens[0]));
        Duration time = Duration.ofSeconds(parseLong(tokens[1]));
        boolean log = Boolean.parseBoolean(tokens[2]);

        return new FormationFilterDefinition(dist, time, log);
    }
@Test
    public void canParseOneDefinition() {
        String singleDef = "0.85,92,true";

        FormationFilterDefinition def = parseFormationFilterDefinition(singleDef);

        assertThat(def.timeRequirement, is(Duration.ofSeconds(92)));
        assertThat(def.proximityRequirement, is(Distance.ofNauticalMiles(0.85)));
        assertThat(def.logRemovedFilter, is(true));
    }