I'd use: 

`assertThat(product.getId(), is(42))`