### Question:
ContentFactoryImpl extends RecordFactoryImpl<Content, ContentImpl> implements ContentFactory { public Content findOldestByAction(VAction inAction, int inOldestIndex) { final LinkedList<Content> list = new LinkedList<Content>(findMostRecentsByAction(inAction, inOldestIndex, false)); return list.getLast(); } ContentFactoryImpl(); boolean usesFiles(Files inFile); int walkOlderByAction(VAction inAction, int inSkip, RecordWalker<Content> inWalker); int walkWithoutAction(RecordWalker<Content> inContentWalker); List<Content> findMostRecentsByAction(VAction inAction, int inNbContent, boolean skipNewContent); ContentImpl createNewContent(VAction inAction, Files inFile, String inTitle, String inLink, String inIdXml); long insert(VAction inAction, Files inFile, String inTitle); long insert(VAction inAction, Files inFile, String inTitle, String inLink, String inIdXml); List<Content> findUnreadByAction(VAction inAction, VObject inVObject, int inMaxContent); Content findOldestByAction(VAction inAction, int inOldestIndex);  }### Answer:
@Test public void findOldestByActionTest() { final VAction theAction = Factories.VACTION.find(1); final Content theContent = Factories.CONTENT.findOldestByAction(theAction, 2); final Content content = Factories.CONTENT.find(21582847); Assert.assertEquals(content, theContent); }
@Test public void findOldestByActionOutOfBoundTest() { final VAction theAction = Factories.VACTION.find(1); final Content theContent = Factories.CONTENT.findOldestByAction(theAction, 10); final Content content = Factories.CONTENT.find(17973955); Assert.assertEquals(content, theContent); }