    @Test
    public void testThrowIfNonEmpty() throws MergingException{

        MergingException.throwIfNonEmpty(ImmutableList.<Message>of());
        try {
            MergingException.throwIfNonEmpty(ImmutableList.<Message>of(
                    new Message(Message.Kind.ERROR, "Message", SourceFilePosition.UNKNOWN)));
            fail();
        } catch (MergingException e) {
            // ok
        }
    }