@Test
 public void testSetGetPackingFraction() {
   testSetGetComposition();
   double silicaPack = 1.0;
   cap.setPackingFraction(silicaPack);
   assertEquals(
       "Packing fraction not set/got correctly", silicaPack, cap.getPackingFraction(), 1e-3);
 }
 //	@Test
 public void testToString() {
   int id = 1;
   cap.setId(id);
   String name = "Quartz capillary";
   cap.setName(name);
   String silica = "SiO2";
   cap.setComposition(silica);
   double density = 1.65;
   cap.setDensity(density);
   double pack = 0.6;
   cap.setPackingFraction(pack);
 }
  @Before
  public void setUp() {
    sample = new XPDFSampleParameters(true);
    // ceria, with a hint of beryllium
    sample.addPhase(SampleTestData.createTestPhase("ceria"), 0.95);
    // beryllium needs atoms added to it
    XPDFPhase beryllium = SampleTestData.createTestPhase("beryllium");
    beryllium.addAtom(new XPDFAtom("Be1", 4, 1.0, new double[] {0.0, 0.0, 0.0}, "a"));
    sample.addPhase(beryllium, 0.05);
    sample.setName("Contaminated ceria");
    sample.setPackingFraction(0.6);

    cap = new XPDFSampleParameters(false);
  }