SignatureUtil { @Deprecated public static Signature getES256() { return createES256(); } private  SignatureUtil(); @Deprecated static Signature getRS256(); @Deprecated static Signature getES256(); static Signature createRS256(); static Signature createES256(); static Signature createSignature(String algorithm);  }
@SuppressWarnings("deprecation") @Test void getES256_test(){ assertThat(SignatureUtil.getES256().getAlgorithm()).isEqualTo("SHA256withECDSA"); }