Map<JMethod, String> testMap = new LinkedHashMap<JMethod, String>();
testMap.put(mockJMethod1, "TESTCSSNAME1");
testMap.put(mockJMethod2, "TESTCSSNAME2");
testMap.put(mockJMethod3, "TESTCSSNAME3");
ByteArrayOutputStream testOutputStream = new ByteArrayOutputStream();
GeneratorContext mockGeneratorContext = mock(GeneratorContext.class);
GeneratedResource mockGeneratedResource = mock(GeneratedResource.class);
when(mockResourceContext.getGeneratorContext()).thenReturn(mockGeneratorContext);
when(mockGeneratorContext.tryCreateResource(
testLogger, "cssResource/com.test.Bundle.cssMethod.cssmap")).thenReturn(testOutputStream);
when(mockJMethod1.getEnclosingType()).thenReturn(mockJClassType1);
when(mockJClassType1.getQualifiedSourceName()).thenReturn("test.class.type.1");
when(mockJMethod1.getName()).thenReturn("basename1");
when(mockJMethod2.getEnclosingType()).thenReturn(mockJClassType2);
when(mockJClassType2.getQualifiedSourceName()).thenReturn("test.class.type.2");
when(mockJMethod2.getName()).thenReturn("basename2");
when(mockJMethod3.getEnclosingType()).thenReturn(mockJClassType3);
when(mockJClassType3.getQualifiedSourceName()).thenReturn("test.class.type.3");
when(mockJMethod3.getName()).thenReturn("basename3");
when(mockGeneratorContext.commitResource(testLogger, testOutputStream)).thenReturn(
mockGeneratedResource);
JMethod method = mock(JMethod.class);
JClassType bundleType = mock(JClassType.class);
when(method.getEnclosingType()).thenReturn(bundleType);