### Question:
LoopbackChannel extends FilteredBase implements LogSource { public int[] getCounters() { return cnt; } LoopbackChannel(); void setPackager(ISOPackager packager); void connect(); void disconnect(); void reconnect(); boolean isConnected(); void send(ISOMsg m); void send(byte[] b); ISOMsg receive(); void setUsable(boolean usable); int[] getCounters(); void setName(String name); String getName(); ISOPackager getPackager(); void resetCounters(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger();  }### Answer:
@Test public void testConstructor() throws Throwable { LoopbackChannel loopbackChannel = new LoopbackChannel(); assertEquals(0, loopbackChannel.getOutgoingFilters().size(), "loopbackChannel.getOutgoingFilters().size()"); assertEquals(0, loopbackChannel.queue.consumerCount(), "loopbackChannel.queue.consumerCount()"); assertEquals(0, loopbackChannel.getIncomingFilters().size(), "loopbackChannel.getIncomingFilters().size()"); assertEquals(3, loopbackChannel.getCounters().length, "loopbackChannel.getCounters().length"); assertTrue(loopbackChannel.usable, "loopbackChannel.usable"); }
@Test public void testGetCounters() throws Throwable { int[] result = new LoopbackChannel().getCounters(); assertEquals(3, result.length, "result.length"); assertEquals(0, result[0], "result[0]"); }