OcelotProcessor extends AbstractProcessor { String getFilename(TypeElement te, String fwk) { return getFilename(te.getSimpleName().toString(), fwk); }  @Override void init(ProcessingEnvironment processingEnv); @Override boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv); void processElement(Element element);  }
@Test public void test_getFilename() { System.out.println("getFilename"); TypeElement element = mock(TypeElement.class); Name name = mock(Name.class); when(name.toString()).thenReturn("Test"); when(element.getSimpleName()).thenReturn(name); String result = instance.getFilename(element, null); assertThat(result).isNotNull(); assertThat(result).isEqualTo("Test.js"); result = instance.getFilename(element, "ng"); assertThat(result).isNotNull(); assertThat(result).isEqualTo("Test.ng.js"); }