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