source: class DslParserTest {
  
      private ApplicationConfiguration applicationConfiguration;
      private Model model;
      private Resource resource;
      private ResourceSet resourceSet;
      private IResourceValidator resourceValidator;
      private ASTNodeConverter ASTNodeConverter;
      @Rule
      public ExpectedException expectedException;
  
      @Test
      public void ifNoIssuesByFilenameThenDelegatedToConverter() throws IOException {
  
target:         String filename = getClass().getResource("/name.brm").getFile();
          initMocks(new File(filename));
          when(resourceValidator.validate(resource, CheckMode.ALL, CancelIndicator.NullImpl)).thenReturn(new ArrayList<>());
  
          ApplicationConfigurationParser parser = new DslParser(resourceSet, resourceValidator, ASTNodeConverter);
  
          ApplicationConfiguration actual = parser.parseApplicationConfiguration(filename);
  
          assertEquals(applicationConfiguration, actual);
      }
  
  }