public static List<FormationFilterDefinition> parseMultipleFilterDefs(String definitions) {

        String[] defs = definitions.split("[|]");  //split on the '|' character
        ArrayList<FormationFilterDefinition> list = newArrayList();
        for (String def : defs) {
            list.add(parseFormationFilterDefinition(def));
        }
        return list;
    }
@Test
    public void canParseMultipleDefinitions() {

        String twoDefs = "0.85,92,true|0.5,61,false";

        List<FormationFilterDefinition> defs = parseMultipleFilterDefs(twoDefs);

        assertThat(defs, hasSize(2));

        assertThat(defs.get(0).timeRequirement, is(Duration.ofSeconds(92)));
        assertThat(defs.get(0).proximityRequirement, is(Distance.ofNauticalMiles(0.85)));
        assertThat(defs.get(0).logRemovedFilter, is(true));

        assertThat(defs.get(1).timeRequirement, is(Duration.ofSeconds(61)));
        assertThat(defs.get(1).proximityRequirement, is(Distance.ofNauticalMiles(0.50)));
        assertThat(defs.get(1).logRemovedFilter, is(false));
    }