/** test cases. */
public static void main(String[] args) {
Debug.init();
String name = (args.length < 1) ? "com.bbn.openmap.layer.shape.ShapeLayer"
: args[0];
PropertyConsumer propertyconsumer = null;
try {
Class c = Class.forName(name);
propertyconsumer = (PropertyConsumer) c.newInstance();
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
Properties props = new Properties(), info = new Properties();
System.out.println("Inspecting " + name);
String pp = name.substring(name.lastIndexOf(".") + 1);
propertyconsumer.setPropertyPrefix(pp.toLowerCase());
props = propertyconsumer.getProperties(props);
info = propertyconsumer.getPropertyInfo(info);
Inspector inspector = new Inspector();
inspector.setPrint(true);
inspector.addActionListener(inspector);
inspector.inspectPropertyConsumer(propertyconsumer);