### Question:
AnnotationUtils { public static int getNumAlignedBases(final GATKSAMRecord read) { return read.getReadLength() - getNumClippedBasesAtStart(read) - getNumClippedBasesAtEnd(read); }  static String encodeValueList( final List<Double> valueList, final String precisionFormat ); static String encodeStringList( final List<String> stringList); static boolean walkerSupportsAlleleSpecificAnnotations(final AnnotatorCompatible walker); static boolean walkerRequiresRawData(final AnnotatorCompatible walker); static boolean isAppropriateInput(final String annotation, final AnnotatorCompatible walker, final PerReadAlleleLikelihoodMap map, final Genotype g, final boolean[] warningsLogged, final Logger logger); static int getFinalVariantReadPosition(final GATKSAMRecord read, final int initialReadPosition); static int getNumClippedBasesAtStart(final SAMRecord read); static int getNumAlignedBases(final GATKSAMRecord read); static int getNumClippedBasesAtEnd(final GATKSAMRecord read); static final String ANNOTATION_HC_WARN_MSG; static final int WARNINGS_LOGGED_SIZE; }### Answer:
@Test(dataProvider = "getNumAlignedBasesTestReads") public void testGetNumAlignedBases(GATKSAMRecord read, int expected) throws Exception { Assert.assertEquals(AnnotationUtils.getNumAlignedBases(read),expected); }