@Nonnull
    WanPublisherState getWanPublisherState(byte id) {
        switch (id) {
            case 0:
                return WanPublisherState.REPLICATING;
            case 1:
                return WanPublisherState.PAUSED;
            case 2:
                return WanPublisherState.STOPPED;
            default:
                return WanBatchPublisherConfig.DEFAULT_INITIAL_PUBLISHER_STATE;
        }
    }
@Test
    public void testGetWanPublisherState() {
        assertEquals(WanPublisherState.REPLICATING, transformer.getWanPublisherState((byte) 0));
        assertEquals(WanPublisherState.PAUSED, transformer.getWanPublisherState((byte) 1));
        assertEquals(WanPublisherState.STOPPED, transformer.getWanPublisherState((byte) 2));
        assertEquals(WanBatchPublisherConfig.DEFAULT_INITIAL_PUBLISHER_STATE, transformer.getWanPublisherState((byte) 3));
    }