SignatureUtil { @Deprecated public static Signature getRS256() { return createRS256(); } 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 getRS256_test(){ assertThat(SignatureUtil.getRS256().getAlgorithm()).isEqualTo("SHA256withRSA"); }