def METHOD_NAME(self):
    """Test get comm event counter."""
    request = pymodbus_message.GetCommEventCounterRequest()
    request.decode(b"\x12")
    assert not request.encode()
    assert request.execute().function_code == 0x0B
    response = pymodbus_message.GetCommEventCounterResponse(0x12)
    assert response.encode() == b"\x00\x00\x00\x12"
    response.decode(b"\x00\x00\x00\x12")
    assert response.status
    assert response.count == 0x12
    response.status = False
    assert response.encode() == b"\xFF\xFF\x00\x12"