Source:
<code>public void removeAggregatePrincipalDecoderTest() throws Exception { String aggregatePrincipalDecoderName = randomAlphanumeric(5), constantPrincipalDecoder1name = randomAlphanumeric(5), constantPrincipalDecoder2name = randomAlphanumeric(5), constant1value = randomAlphanumeric(5), constant2value = randomAlphanumeric(5); Address aggregatePrincipalDecoderAddress = elyOps.getElytronAddress(AGGREGATE_PRINCIPAL_DECODER, aggregatePrincipalDecoderName), constantPrincipalDecoder1address = elyOps.getElytronAddress(CONSTANT_PRINCIPAL_DECODER, constantPrincipalDecoder1name), constantPrincipalDecoder2address = elyOps.getElytronAddress(CONSTANT_PRINCIPAL_DECODER, constantPrincipalDecoder2name); ResourceVerifier aggregatePrincipalDecoderVerifier = new ResourceVerifier(aggregatePrincipalDecoderAddress, client); try { ops.add(constantPrincipalDecoder1address, Values.of(CONSTANT, constant1value)).assertSuccess(); ops.add(constantPrincipalDecoder2address, Values.of(CONSTANT, constant2value)).assertSuccess(); ops.add(aggregatePrincipalDecoderAddress, Values.of(PRINCIPAL_DECODERS, new ModelNodeListBuilder() .addAll(constantPrincipalDecoder1name, constantPrincipalDecoder2name) .build())).assertSuccess(); aggregatePrincipalDecoderVerifier.verifyExists(); page.navigateToDecoder().selectResource(AGGREGATE_PRINCIPAL_DECODER_LABEL).getResourceManager() .removeResource(aggregatePrincipalDecoderName).confirmAndDismissReloadRequiredMessage().assertClosed(); assertFalse("Removed resource should not be present in the table any more!", page.resourceIsPresentInMainTable(aggregatePrincipalDecoderName)); aggregatePrincipalDecoderVerifier.verifyDoesNotExist(); } finally { <START> ops.removeIfExists(aggregatePrincipalDecoderAddress); <END> adminOps.reloadIfRequired(); } }</code><technical_language>constantPrincipalDecoder1address constantPrincipalDecoder2address removed to</technical_language>

Target:
public void removeAggregatePrincipalDecoderTest() throws Exception { String aggregatePrincipalDecoderName = randomAlphanumeric(5), constantPrincipalDecoder1name = randomAlphanumeric(5), constantPrincipalDecoder2name = randomAlphanumeric(5), constant1value = randomAlphanumeric(5), constant2value = randomAlphanumeric(5); Address aggregatePrincipalDecoderAddress = elyOps.getElytronAddress(AGGREGATE_PRINCIPAL_DECODER, aggregatePrincipalDecoderName), constantPrincipalDecoder1address = elyOps.getElytronAddress(CONSTANT_PRINCIPAL_DECODER, constantPrincipalDecoder1name), constantPrincipalDecoder2address = elyOps.getElytronAddress(CONSTANT_PRINCIPAL_DECODER, constantPrincipalDecoder2name); ResourceVerifier aggregatePrincipalDecoderVerifier = new ResourceVerifier(aggregatePrincipalDecoderAddress, client); try { ops.add(constantPrincipalDecoder1address, Values.of(CONSTANT, constant1value)).assertSuccess(); ops.add(constantPrincipalDecoder2address, Values.of(CONSTANT, constant2value)).assertSuccess(); ops.add(aggregatePrincipalDecoderAddress, Values.of(PRINCIPAL_DECODERS, new ModelNodeListBuilder() .addAll(constantPrincipalDecoder1name, constantPrincipalDecoder2name) .build())).assertSuccess(); aggregatePrincipalDecoderVerifier.verifyExists(); page.navigateToDecoder().selectResource(AGGREGATE_PRINCIPAL_DECODER_LABEL).getResourceManager() .removeResource(aggregatePrincipalDecoderName).confirmAndDismissReloadRequiredMessage().assertClosed(); assertFalse("Removed resource should not be present in the table any more!", page.resourceIsPresentInMainTable(aggregatePrincipalDecoderName)); aggregatePrincipalDecoderVerifier.verifyDoesNotExist(); } finally { ops.removeIfExists(aggregatePrincipalDecoderAddress); ops.removeIfExists(constantPrincipalDecoder1address); ops.removeIfExists(constantPrincipalDecoder2address); adminOps.reloadIfRequired(); } }