@Test
public void testAcceptType() throws Exception {

    ObjectReference foo = this.getObjectReference("Foo");
    assertFalse("Should not accept null type.", formatter.acceptType(null, new HashMap<>()));
    assertFalse("Should not accept Foo type.", formatter.acceptType(foo.referenceType(), new HashMap<>()));
    ObjectReference str = this.getObjectReference("java.lang.String");
    assertFalse("Should not accept String type.", formatter.acceptType(str.referenceType(), new HashMap<>()));
    Value boolVar = getVM().mirrorOf(true);
    assertTrue("Should accept boolean type.", formatter.acceptType(boolVar.type(), new HashMap<>()));
    boolVar = this.getLocalValue("boolVar");
    assertFalse("Should not accept Boolean type.", formatter.acceptType(boolVar.type(), new HashMap<>()));
}