LockThread { public void userSynchronizedLock() { startThreadbyType(3); }  static void main(String[] args); void tryLcok(final boolean isWait); void userReetrantReadWriterLock(); void userSynchronizedLock(); void useGlobalLock(); void useLocallLock(); void startThreadbyType(final int type);  }
@Test public void testUserSynchronizedLock() throws Exception { LockThread lockThread=new LockThread(); lockThread.userSynchronizedLock(); }