@Test
public void testBind() throws Exception {

  final ProjectFile projectFile = new ProjectFile();
  final Project project = new Project(randomUUID().toString(), projectFile);
  final Source source = new Source(project, randomUUID().toString());
  final ResourceManager resourceManager = mock(ResourceManager.class);
  source.bind(resourceManager, "../subsource.lua");
  verify(resourceManager).getResource(anyString());
  source.bind(resourceManager, "subpackage");
  verify(resourceManager).getPackage(anyString());
}