@Test
 public void testSetGetPhaseWeighting() {
   XPDFPhase firstPhase = sample.getPhases().get(0);
   double newWeight = 0.9;
   sample.setPhaseWeighting(firstPhase, newWeight);
   assertEquals(
       "Phase weighting not set/got correctly",
       newWeight,
       sample.getPhaseWeighting(firstPhase),
       1e-3);
 }
 @Test
 public void testAddPhaseXPDFPhaseDouble() {
   XPDFPhase rutile = SampleTestData.createTestPhase("rutile");
   double rutileWeight = 0.1;
   sample.addPhase(rutile, rutileWeight);
   assertTrue("New weighted phase not successfully added", sample.getPhases().contains(rutile));
   assertEquals(
       "New phase weighting not successfully retrieved",
       sample.getPhaseWeighting(rutile),
       rutileWeight,
       1e-3);
 }