### Question:
LeaderElectionConfig extends PrimitiveConfig<LeaderElectionConfig> { @Override public PrimitiveType getType() { return LeaderElectionType.instance(); }  @Override PrimitiveType getType();  }### Answer:
@Test public void testLoadConfig() throws Exception { LeaderElectionConfig config = Atomix.config(getClass().getClassLoader().getResource("primitives.conf").getPath()) .getPrimitive("leader-election"); assertEquals("leader-election", config.getName()); assertEquals(MultiPrimaryProtocol.TYPE, config.getProtocolConfig().getType()); assertFalse(config.isReadOnly()); }