@@ -0,0 +1,676 @@
+package com.github.kaaveland.tryagain;%0A%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Apublic class InstancesOfTest %7B%0A    ExceptionMatcher runtimeException = new InstancesOf(RuntimeException.class);%0A%0A    @Test%0A    public void that_illegal_argument_exception_matches_instances_of_runtime_exception() %7B%0A        assertThat(runtimeException.matches(new IllegalArgumentException()), is(true));%0A    %7D%0A%0A    @Test%0A    public void that_ioexception_does_not_match_instancesof_runtime_exception() %7B%0A        assertThat(runtimeException.matches(new IOException()), is(false));%0A    %7D%0A%7D%0A

Test InstancesOf.