CPKAtomColors implements IAtomColorer, java.io.Serializable { @Override public Color getAtomColor(IAtom atom) { return getAtomColor(atom, DEEP_PINK); }  @Override Color getAtomColor(IAtom atom); @Override Color getAtomColor(IAtom atom, Color defaultColor);  }
@Test public void testGetAtomColor() { CPKAtomColors colors = new CPKAtomColors(); Assert.assertNotNull(colors); Assert.assertEquals(Color.WHITE, colors.getAtomColor(new Atom("H"))); Assert.assertEquals(new Color(0xFFC0CB), colors.getAtomColor(new Atom("He"))); }
@Test public void testGetDefaultAtomColor() { CPKAtomColors colors = new CPKAtomColors(); Assert.assertNotNull(colors); IAtom imaginary = new PseudoAtom("Ix"); Assert.assertEquals(Color.ORANGE, colors.getAtomColor(imaginary, Color.ORANGE)); }