@Test
public void testBuildList_exception() throws Exception {

	// Two targets, but only one with valid properties.
	// The invalid one won't be listed.
	File dir1 = this.folder.newFolder();
	File dir2 = this.folder.newFolder();
	Utils.writeStringInto( "prop: done", new File( dir1, Constants.TARGET_PROPERTIES_FILE_NAME ));
	List<File> targetDirectories = new ArrayList<>( 2 );
	targetDirectories.add( dir1 );
	targetDirectories.add( dir2 );
	List<TargetWrapperDescriptor> beans = ((TargetsMngrImpl) this.mngr).buildList( targetDirectories, null );
	Assert.assertEquals( 1, beans.size());
	Assert.assertEquals( dir1.getName(), beans.get( 0 ).getId());
}