@Test
public void testGuessFormat_Reader() throws Exception {

    String filename = "data/xyz/bf3.xyz";
    InputStream input = this.getClass().getClassLoader().getResourceAsStream(filename);
    BufferedReader reader = new BufferedReader(new InputStreamReader(input));
    IChemFormat format = factory.guessFormat(reader);
    Assert.assertNotNull(format);
    // make sure the Reader is properly reset
    String line = reader.readLine();
    Assert.assertNotNull(line);
    Assert.assertEquals("4", line);
    line = reader.readLine();
    Assert.assertNotNull(line);
    Assert.assertEquals("Bortrifluorid", line);
}