### Question:
FileBitPatternInfoReader { public ContextRegisterExtent getContextRegisterExtent() { return registerExtent; } FileBitPatternInfoReader(Program program, DataGatheringParams params, Component parent);  FileBitPatternInfoReader(File xmlDir, Component parent);   FileBitPatternInfoReader(File xmlDir); List<Long> getStartingAddresses(); int getNumFuncs(); int getNumFiles(); ContextRegisterExtent getContextRegisterExtent(); List<FunctionBitPatternInfo> getFInfoList(); List<Long> getFilteredAddresses(ContextRegisterFilter registerFilter); DataGatheringParams getDataGatheringParams();  }### Answer:
@Test public void testContextRegisterExtent() { BigInteger zero = new BigInteger("0"); BigInteger one = new BigInteger("1"); BigInteger two = new BigInteger("2"); BigInteger three = new BigInteger("3"); ContextRegisterExtent cRegExtent = fReader.getContextRegisterExtent(); List<String> cRegisters = cRegExtent.getContextRegisters(); assertEquals(4, cRegisters.size()); String cReg = cRegisters.get(0); assertEquals("cReg1", cReg); List<BigInteger> valuesForReg = cRegExtent.getValuesForRegister(cReg); assertEquals(1, valuesForReg.size()); assertEquals(zero, valuesForReg.get(0)); cReg = cRegisters.get(1); assertEquals("cReg2", cReg); valuesForReg = cRegExtent.getValuesForRegister(cReg); assertEquals(2, valuesForReg.size()); assertEquals(zero, valuesForReg.get(0)); assertEquals(one, valuesForReg.get(1)); cReg = cRegisters.get(2); assertEquals("cReg3", cReg); valuesForReg = cRegExtent.getValuesForRegister(cReg); assertEquals(4, valuesForReg.size()); assertEquals(zero, valuesForReg.get(0)); assertEquals(one, valuesForReg.get(1)); assertEquals(two, valuesForReg.get(2)); cReg = cRegisters.get(3); assertEquals("cReg4", cReg); valuesForReg = cRegExtent.getValuesForRegister(cReg); assertEquals(8, valuesForReg.size()); assertEquals(zero, valuesForReg.get(0)); assertEquals(one, valuesForReg.get(1)); assertEquals(two, valuesForReg.get(2)); assertEquals(three, valuesForReg.get(3)); }