@Test public void testFillComponent() throws Exception { final String componentName = "myCompo"; final Component component = new Component(); component.setName(componentName); final ComponentAttachmentCSVRecordBuilder componentAttachmentCSVRecordBuilder = new ComponentAttachmentCSVRecordBuilder(); componentAttachmentCSVRecordBuilder.fill(component); final ComponentAttachmentCSVRecord filledRecord = componentAttachmentCSVRecordBuilder.build(); assertThat(filledRecord.getComponentName(), is(componentName)); }