public static Named as(final String name) {
        Objects.requireNonNull(name, "name can't be null");
        return new Named(name);
    }
@Test
    public void shouldThrowExceptionGivenNullName() {
        assertThrows(NullPointerException.class, () -> Named.as(null));
    }