public void getNewTestCaseSourceCode_A$_JUnit3() throws Exception {
Configuration config = new Configuration();
config.junitVersion = JUnitVersion.version3;
TestCaseGeneratorImpl target = new TestCaseGeneratorImpl(config, lineBreakProvider);
String sourceCodeString = "package hoge.foo; import java.util.List;\r\nimport java.util.Map; public class Sample { public Sample() {}\r\n public int doSomething(String str, long longValue) throws Throwable { System.out.println(\"aaaa\"); } public void doSomething(List<Map<String, String>> nested, Map<String,Map<String,String>> nested2) { } }";
ClassMeta targetClassMeta = classMetaExtractor.extract(sourceCodeString);
target.initialize(targetClassMeta);
String actual = target.getNewTestCaseSourceCode();
String expected = "package hoge.foo;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.HashMap;\r\nimport hoge.foo.Sample.*;\r\n\r\nimport java.util.List;\r\nimport java.util.Map;\r\nimport junit.framework.TestCase;\r\n\r\npublic class SampleTest extends TestCase {\r\n\r\n public void test_type() throws Exception {\r\n // TODO auto-generated by JUnit Helper.\r\n assertNotNull(Sample.class);\r\n }\r\n\r\n public void test_instantiation() throws Exception {\r\n // TODO auto-generated by JUnit Helper.\r\n Sample target = new Sample();\r\n assertNotNull(target);\r\n }\r\n\r\n public void test_doSomething_A$String$long() throws Throwable {\r\n // TODO auto-generated by JUnit Helper.\r\n Sample target = new Sample();\r\n String str = null;\r\n long longValue = 0L;\r\n int actual = target.doSomething(str, longValue);\r\n int expected = 0;\r\n assertEquals(expected, actual);\r\n }\r\n\r\n public void test_doSomething_A$List$Map() throws Exception {\r\n // TODO auto-generated by JUnit Helper.\r\n Sample target = new Sample();\r\n List nested = new ArrayList();\r\n Map nested2 = new HashMap();\r\n target.doSomething(nested, nested2);\r\n }\r\n\r\n}\r\n";
assertEquals(expected, actual);
}