final String targetBeamPath = "ebin/mod.beam";
final IResource beam0 = prj.findMember(targetBeamPath);
assertThat("beam existed before test", beam0, nullValue());
final ErlangBuilder builder = ErlangBuilderFactory.get(builderTool);
final BuildNotifier notifier = new BuildNotifier(null, prj);
final IErlProject erlProject = ErlangEngine.getInstance().getModel()
.getErlangProject(prj);
builder.build(BuildKind.FULL, erlProject, notifier);
prj.refreshLocal(IResource.DEPTH_INFINITE, null);
waitJobsToFinish(ResourcesPlugin.FAMILY_MANUAL_REFRESH);
final IResource beam = prj.findMember(targetBeamPath);
assertThat("beam was not created", beam, notNullValue());