### Question:
SignatureBuilder implements Serializable { public static <T extends SignatureBuilder> void setSignatureBuilderForContainerType( String containerType, Class<T> signatureBuilderClass) { customSignatureBuilders.put(containerType, signatureBuilderClass); }  static SignatureBuilder aSignature(Container container); static void setSignatureBuilderForContainerType(
      String containerType,
      Class<T> signatureBuilderClass); static void removeCustomSignatureBuilders(); Signature invokeSigning(); abstract DataToSign buildDataToSign(); abstract Signature openAdESSignature(byte[] signatureDocument); SignatureBuilder withCity(String cityName); SignatureBuilder withStateOrProvince(String stateOrProvince); SignatureBuilder withPostalCode(String postalCode); SignatureBuilder withCountry(String country); SignatureBuilder withRoles(String... roles); SignatureBuilder withSignatureDigestAlgorithm(DigestAlgorithm digestAlgorithm); SignatureBuilder withSignatureProfile(SignatureProfile signatureProfile); SignatureBuilder withSigningCertificate(X509Certificate certificate); SignatureBuilder withSignatureId(String signatureId); SignatureBuilder withSignatureToken(SignatureToken signatureToken); SignatureBuilder withEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm); SignatureBuilder withOwnSignaturePolicy(Policy signaturePolicy);  }### Answer:
@Test public void invokeSigning_whenOverridingBDocContainerFormat() { CustomContainer.type = "BDOC"; ContainerBuilder.setContainerImplementation("BDOC", CustomContainer.class); SignatureBuilder.setSignatureBuilderForContainerType("BDOC", MockSignatureBuilder.class); Container container = this.createNonEmptyContainer(); Signature signature = this.createSignatureBy(container, this.pkcs12SignatureToken); Assert.assertNotNull(signature); CustomContainer.resetType(); }