@Test public void shouldNotBeAbleToHandleAHashSet() throws SerialisationException { // Given final Class testClass = HashSet.class; // When final boolean canHandle = SERIALISER.canHandle(testClass); // Then assertFalse(canHandle); }