    @Test
    public void testExtractAuthorFromDirectoryName() throws Exception {

        BookImportContext bookImportContext = createMock(BookImportContext.class);

        File mock = createMock(File.class);
        File parent = createMock(File.class);

        expect(mock.getParentFile()).andReturn(parent);
        expect(parent.getName()).andReturn("Christopher, Matt");
        expect(bookImportContext.getFile()).andReturn(mock);

        replayAll();

        Score<List<Author>> authorScores = new ParentDirectoryAuthorScoreStrategy().score(bookImportContext);

        List<Author> authors = authorScores.getValue();

        verifyAll();

        assertThat(authors, hasItems(new Author("Matt", "Christopher")));
        assertThat(authorScores.getScore(), is(1.0));
    }