Here you can find the source of assertInstanceOf(Object obj, Class classType)
static public final void assertInstanceOf(Object obj, Class classType)
//package com.java2s; //License from project: Open Source License public class Main { static public final void assertInstanceOf(Object obj, Class classType) { if (obj == null) { throw new IllegalArgumentException("Argument is null!"); }/* w w w . j av a2s .co m*/ if (!classType.isInstance(obj)) { throw new IllegalArgumentException( "Argument should be instance of " + classType.getName() + ", but now is " + obj.getClass().getName()); } } }