@Test
public void testImportTwiceWithOnlyAPart() throws Exception {

    FluentIterable<ComponentCSVRecord> compCSVRecords = getCompCSVRecordsFromTestFile(fileName);
    ComponentImportUtils.writeToDatabase(compCSVRecords.limit(1), componentClient, vendorClient, attachmentClient, user);
    assertThat(componentClient.getComponentSummary(user), hasSize(1));
    List<Release> releaseSummary = componentClient.getReleaseSummary(user);
    assertThat(releaseSummary, hasSize(1));
    assertThat(releaseSummary.get(0).getName(), is("7-Zip"));
    ComponentImportUtils.writeToDatabase(compCSVRecords, componentClient, vendorClient, attachmentClient, user);
    assertExpectedComponentsInDb();
}