PrimaryReplicaReplicationRuleConfigurationYamlSwapper implements YamlRuleConfigurationSwapper<YamlPrimaryReplicaReplicationRuleConfiguration, PrimaryReplicaReplicationRuleConfiguration> { @Override public int getOrder() { return PrimaryReplicaReplicationOrder.ORDER; }  @Override YamlPrimaryReplicaReplicationRuleConfiguration swapToYamlConfiguration(final PrimaryReplicaReplicationRuleConfiguration data); @Override PrimaryReplicaReplicationRuleConfiguration swapToObject(final YamlPrimaryReplicaReplicationRuleConfiguration yamlConfig); @Override Class<PrimaryReplicaReplicationRuleConfiguration> getTypeClass(); @Override String getRuleTagName(); @Override int getOrder();  }
@Test public void assertGetOrder() { PrimaryReplicaReplicationRuleConfigurationYamlSwapper swapper = getPrimaryReplicaReplicationRuleConfigurationYamlSwapper(); int actual = swapper.getOrder(); assertThat(actual, is(PrimaryReplicaReplicationOrder.ORDER)); }