@Override
    public long branchRegister(String resourceId, String clientId, String xid, String applicationData, String lockKeys)
            throws TransactionException {
        return DefaultResourceManager.get().branchRegister(BranchType.SAGA, resourceId, clientId, xid, applicationData,
                lockKeys);
    }
@Test
    public void testBranchRegister() {
        ResourceManager resourceManager = Mockito.mock(ResourceManager.class);
        Mockito.doNothing().when(resourceManager).registerResource(any(Resource.class));
        DefaultResourceManager.get();
        DefaultResourceManager.mockResourceManager(BranchType.SAGA, resourceManager);
        Assertions.assertDoesNotThrow(() -> sagaTransactionalTemplate.branchRegister("",
                "", "", "", ""));
    }