@Test public void checkThatConstructorIsProtected() { for (Constructor<?> constr : Earth.class.getDeclaredConstructors()) { assertTrue( "Constructors should be protected to allow subclasses of singleton", Modifier.isProtected(constr.getModifiers())); } }