    @Test
    public void testHandleParamActivity() {

        String className = TestConstants.testPackageName + ".AA";


        NavigableAnnotatedClass navigableAnnotatedClass = Mockito.mock(NavigableAnnotatedClass.class);

        TypeElement typeElement = Mockito.mock(TypeElement.class);
        Name name = Mockito.mock(Name.class);

        when(typeElement.getQualifiedName()).thenReturn(name);
        when(name.toString()).thenReturn(className);
        when(navigableAnnotatedClass.getTypeElement()).thenReturn(typeElement);
        when(navigableAnnotatedClass.getTypeElement().getQualifiedName()).thenReturn(name);

        when(navigableAnnotatedClass.getAnnotatedClassName()).thenReturn(className);




        MethodSpec methodSpec = navigatorCodeGenerator.handleParamActivity("bbb", navigableAnnotatedClass);

        // Test method signature
        TestUtils.testMethodSpec(methodSpec, className, TypeName.VOID, Modifier.PUBLIC, Modifier.STATIC);

        // Test method params
        assertEquals(2, methodSpec.parameters.size());

        TestUtils.testMethodParams(methodSpec.parameters.get(0), "activity", "android.app.Activity", Modifier.FINAL);
        TestUtils.testMethodParams(methodSpec.parameters.get(1), "flags", "java.lang.Integer[]", Modifier.FINAL);

        //Test method annotations
        assertEquals(0, methodSpec.annotations.size());

    }