@Test
public void testFake() {

    CompositeEthereumListener listener = new CompositeEthereumListenerMock();
    EthashRule rule = new EthashRule(EthashRule.Mode.fake, EthashRule.ChainType.main, listener);
    assertEquals(Success, rule.validate(validHeader));
    assertEquals(Success, rule.validate(partlyValidHeader));
    assertNotEquals(Success, rule.validate(invalidHeader));
}