@Test
public void throwsIfExpectedPropertyIsNotPresent() {

    Assertions.assertThrows(IllegalArgumentException.class, () -> {
        Symbol symbol = Symbol.builder().name("foo").build();
        symbol.expectProperty("baz");
    });
}