public void testGAUSSIAN_FWHM() throws IOException, EPQException {
Element element = createGaussianFWHMBeamElement();
BeamExtractor extractor = BeamExtractorFactory.GAUSSIAN_FWHM;
GaussianFWHMBeam beam = (GaussianFWHMBeam) extractor.extract(element);
assertEquals(1234, FromSI.eV(beam.getBeamEnergy()), 1e-4);
assertEquals(0.01, beam.getCenter()[0], 1e-4);
assertEquals(0.02, beam.getCenter()[1], 1e-4);
assertEquals(0.03, beam.getCenter()[2], 1e-4);
assertEquals(4, beam.getDirection()[0], 1e-4);
assertEquals(5, beam.getDirection()[1], 1e-4);
assertEquals(6, beam.getDirection()[2], 1e-4);
assertEquals(10, beam.getDiameter() * 1e9, 1e-4);
}