    @Test
    @Transactional
    public void testReadItem() throws Exception {

        itemReader.open(null);

        int count = 0;
        Auction auction;
        while ((auction = ((Auction) itemReader.readItem())) != null) {
            count ++;
            assertNotNull(auction);

            AuctionFile auctionFile = AuctionFile.findById(1L);
            itemProcessor.getContext().setAuctionFile(auctionFile);
            auction = (Auction) itemProcessor.processItem(auction);

            itemWriter.writeItems(Lists.newArrayList(auction));
        }
        assertEquals(8, count);

        List<Auction> auctions = Auction.findByConnectedRealm(ConnectedRealm.builder().id("1").build());
        assertEquals(8, auctions.size());
    }