@Test
public void testCreate() throws Exception {

    Object cleaner = GridCleaner.create(this, new Runnable() {
        @Override public void run() {
            // no-op
        }
    });
    assert cleaner != null;
    String clsName = cleaner.getClass().getName();
    assert clsName.equals("sun.misc.Cleaner")
        || clsName.equals("jdk.internal.ref.CleanerImpl$PhantomCleanableRef");
}