TestMethodGeneratorImpl target = new TestMethodGeneratorImpl(config, lineBreakProvider);
ClassMetaExtractor classMetaExtractor = new ClassMetaExtractor(config);
String sourceCodeString = "package hoge.foo; import java.util.List; import java.util.Map; public class Sample { public int doSomething(String str, long longValue, List<String> list, Map<String,Object> map, java.util.HashMap<String, String> hashMap) throws Throwable { System.out.println(\"aaaa\") } }";
ClassMeta targetClassMeta = classMetaExtractor.extract(sourceCodeString);
target.initialize(targetClassMeta);
MethodMeta targetMethodMeta = targetClassMeta.methods.get(0);
TestMethodMeta testMethodMeta = target.getTestMethodMeta(targetMethodMeta);
// when
// then
assertEquals("null", target.getArgValue(testMethodMeta, targetMethodMeta.argTypes.get(0),
targetMethodMeta.argNames.get(0)));