@Test
public void testAACount() throws Exception {

    IBioPolymer protein = ProteinBuilderTool.createProtein("ARNDCFQEGHIPLKMSTYVW",
            SilentChemObjectBuilder.getInstance());
    IDescriptorResult result = descriptor.calculate(protein).getValue();
    Assert.assertTrue(result instanceof IntegerArrayResult);
    IntegerArrayResult iaResult = (IntegerArrayResult) result;
    for (int i = 0; i < iaResult.length(); i++) {
        Assert.assertTrue(iaResult.get(i) >= 1); // all AAs are found at least once
    }
    Assert.assertEquals(20, iaResult.get(8)); // glycine is in all of them, so 20 times
}