JPAUtils { @Autowired public JPAUtils(CommonClassDao commonClassDao) { JPAUtils.commonClassDao = commonClassDao; } @Autowired  JPAUtils(CommonClassDao commonClassDao); private  JPAUtils(); static JPAUtils getJPAUtilsInstance(); boolean dbLockdownIgnoreErrors(); boolean dbLockdown();  }
@Test(expected = IllegalAccessException.class) public void testJpaUtils() throws IllegalAccessException { JPAUtils utils = JPAUtils.getJPAUtilsInstance(); assertFalse(utils.dbLockdownIgnoreErrors()); utils.dbLockdown(); fail("Expecting an exception"); }