@Test public void testFillRelease() throws Exception { final String releaseName = "myRelease"; final String releaseVersion = "1.862b"; final Release release = new Release(); release.setName(releaseName).setVersion(releaseVersion); final ComponentAttachmentCSVRecordBuilder componentAttachmentCSVRecordBuilder = new ComponentAttachmentCSVRecordBuilder(); componentAttachmentCSVRecordBuilder.fill(release); final ComponentAttachmentCSVRecord filledRecord = componentAttachmentCSVRecordBuilder.build(); assertThat( filledRecord.getReleaseIdentifier(), is(SW360Utils.getVersionedName(releaseName, releaseVersion))); }