@@ -15,8 +15,10 @@ class CodeGenerationUtilsTest {
     @Test
     void getters() {
         assertEquals("getValue", getterName(Object.class, "value"));
-        assertEquals("isBlue", getterName(Boolean.class, "isBlue"));
-        assertEquals("isBlue", getterName(Boolean.class, "blue"));
+        assertEquals("isBlue", getterName(Boolean.TYPE, "isBlue"));
+        assertEquals("isBlue", getterName(Boolean.TYPE, "blue"));
+        assertEquals("getBlue", getterName(Boolean.class, "blue"));
+        assertEquals("getIsBlue", getterName(Boolean.class, "isBlue"));
     }
 
 }
package com.github.javaparser.utils;

import org.junit.jupiter.api.Test;

import static com.github.javaparser.utils.CodeGenerationUtils.*;
import static org.junit.jupiter.api.Assertions.*;

class CodeGenerationUtilsTest {
    @Test
    void setters() {
        assertEquals("setValue", setterName("value"));
        assertEquals("setBlue", setterName("isBlue"));
    }

    @Test
    void getters() {
        assertEquals("getValue", getterName(Object.class, "value"));
        assertEquals("isBlue", getterName(Boolean.class, "isBlue"));
        assertEquals("isBlue", getterName(Boolean.class, "blue"));
    }

}

Oh, I didn't know about this! Isn't it the same as `boolean.class` though?