@Test
public void testCheckArgumentShouldThrowIllegalArgumentExceptionIfExpressionIsFalse() {

    // Given:
    String errorMessage = "error message";
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage(errorMessage);
    // When:
    Preconditions.checkArgument(1 == 2, errorMessage);
    // Then: expect exception
}