PolicyList { public static void clearPolicyList() { if (!policyList.isEmpty()) { policyList.clear(); } }  static List<String> getpolicyList(); static void addPolicyId(final String policyId); static void clearPolicyList();  }
@Test public final void testClearPolicyList() { try { PolicyList.clearPolicyList(); assertTrue(PolicyList.getpolicyList().size() == 0); } catch (final Exception e) { fail("operation failed, e=" + e); } }