@SuppressWarnings("unchecked")
    private SpscChannelConsumer<E> newConsumer(Object... args) {
        return mapper.newFlyweight(SpscChannelConsumer.class, "ChannelConsumerTemplate.java",
                Template.fromFile(Channel.class, "ChannelConsumerTemplate.java"),  args);
    }
@Test
    public void shouldReadAnObject() {
        ChannelConsumer consumer = newConsumer();

        shouldWriteAnObject();

        assertTrue(consumer.read());
        assertEmpty();
    }