// throws BackingStoreException;
@Test
public void getExternalIncludes() throws Exception {
File externalFile = null;
File externalsFile = null;
final IErlProject aProject = project2;
final String externalIncludesString = aProject.getProperties()
.getExternalIncludes();
try {
// given
// an erlang project and an external file not in any project
final String externalFileName = "external.hrl";
externalFile = createTmpFile(externalFileName, "-define(E, hej).\n");
final String absolutePath = externalFile.getAbsolutePath();
final String externalsFileName = XX_ERLIDEX;
externalsFile = createTmpFile(externalsFileName, absolutePath);
aProject.open(null);
final Collection<IErlModule> otpIncludes = aProject.getExternalIncludes();
((ErlProject) aProject).setExternalIncludesFile(externalsFile
.getAbsolutePath());
aProject.open(null);
// when
// fetching all external includes
final Collection<IErlModule> externalIncludes = aProject
.getExternalIncludes();
// then
// the external file should be returned
final Set<IErlModule> otpSet = Sets.newHashSet(otpIncludes);
final Set<IErlModule> externalSet = Sets.newHashSet(externalIncludes);