### Question:
MatrixActionsGenerator { public static void generate( String genDir, String actionPackage, String messagesPackageName, IDictionaryStructure dictionary, String uncheckedFields) throws IOException { Collection<IMessageStructure> messages = dictionary.getMessages().values(); StringWriter strWriter = new StringWriter(); String typeNamespace = messagesPackageName + "." + dictionary.getNamespace().toLowerCase(); ActionClassTemplate actionTemplate = new ActionClassTemplate(); actionTemplate.render( strWriter, actionPackage, dictionary.getNamespace(), typeNamespace, messages, uncheckedFields ); String fileName = genDir + ("." + actionPackage + "." + dictionary.getNamespace().toUpperCase() + "_SndRcvMatrixActions") .replace('.', File.separatorChar); fileName += ".java"; String contents = strWriter.toString(); writeFile(contents, fileName); }  static void generate(
			String genDir,
			String actionPackage,
			String messagesPackageName,
			IDictionaryStructure dictionary,
			String uncheckedFields); static void main(String[] args);  }### Answer:
@Test public void testMatrixActionsGenerator() throws Exception { IDictionaryStructureLoader loader = new XmlDictionaryStructureLoader(); IDictionaryStructure dictionary; try (InputStream in = new FileInputStream("src/main/workspace/cfg/dictionaries/example.xml")) { dictionary = loader.load(in); } String path = "build/test-results/generated"; MatrixActionsGenerator.generate( path, "com.exactpro.sf.actions", "com.exactpro.sf.messages.impl", dictionary, "DefaultMessageFactory.getFactory().getUncheckedFields()" ); File actionFile = new File(path + "/com/exactpro/sf/actions/EXAMPLE_SndRcvMatrixActions.java"); if(!actionFile.exists()) { Assert.fail(); } }