### Question:
Filter implements Predicate<Atom>, Serializable { @Override public boolean test(final Atom atom) { Integer sourceIndex = getSourceIndexFor(atom); Float weight = atom.getWeight(); if (null == sourceIndex || null == weight) return false; return sourceIndex >= minSourceIndex && weight >= minWeight; } private  Filter(final float minWeight,
                   final float defaultWeight,
                   final int minSourceIndex,
                   final String defaultSource); private  Filter();  Filter(final float minWeight,
                  final float defaultWeight,
                  final String minSource,
                  final String defaultSource); static Filter noFilter(); float getMinWeight(); String getMinSource(); void setMinWeight(float minWeight); void setDefaultWeight(float defaultWeight); void setMinSource(String minSource); void setDefaultSource(String defaultSource); String getDefaultSource(); float getDefaultWeight(); boolean isTrivial(); @Override boolean test(final Atom atom);  }### Answer:
@Test public void minimumWeightIsInclusive() throws Exception { Filter filter = new Filter(0.5f, 0.5f, DefaultSources.PERSONAL, DefaultSources.PERSONAL); assertTrue(filter.test(createAtom(DefaultSources.UNIVERSAL, 0.5f))); assertFalse(filter.test(createAtom(DefaultSources.UNIVERSAL, 0.4f))); }