FilterComposite implements Composite { public BufferedImageOp getFilter() { return filter; } FilterComposite(Composite composite);  FilterComposite(Composite composite, BufferedImageOp filter); BufferedImageOp getFilter(); void setFilter(BufferedImageOp filter); @Override CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel,
            RenderingHints hints);  }
@Test public void checkUnaryConstructorHasNoFilter() { Composite composite = mock(Composite.class); FilterComposite fc = new FilterComposite(composite); assertThat(fc.getFilter(), is(nullValue())); }