@Test
public void throwsIfExpectedPropertyIsNotOfSameType() {

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