ConjugatedAtomEncoder implements AtomEncoder { public static AtomEncoder create(AtomEncoder encoder, AtomEncoder... encoders) { if (encoder == null || encoders == null) throw new NullPointerException("null encoders provided"); List<AtomEncoder> tmp = new ArrayList<AtomEncoder>(encoders.length + 1); tmp.add(encoder); for (AtomEncoder e : encoders) tmp.add(e); return new ConjugatedAtomEncoder(tmp); } ConjugatedAtomEncoder(List<AtomEncoder> encoders); @Override int encode(IAtom atom, IAtomContainer container); static AtomEncoder create(AtomEncoder encoder, AtomEncoder... encoders);  }
@Test(expected = NullPointerException.class) public void testCreate_Null() { ConjugatedAtomEncoder.create(null, new AtomEncoder[0]); }
@Test(expected = NullPointerException.class) public void testCreate_Null2() { ConjugatedAtomEncoder.create(mock(AtomEncoder.class), null); }