public class OperationFilterTest {
@Test
public void shouldHaveStatusAndDeviceAndAgent() throws Exception {
// Given
OperationStatus status = OperationStatus.EXECUTING;
String deviceId = "deviceId";
String agentId = "agentId";
//When
OperationFilter filter = new OperationFilter().byStatus(status).byDevice(deviceId).byAgent(agentId);
//Then
assertThat(filter.getStatus(), is(status.toString()));
assertThat(filter.getDevice(), is(deviceId));
assertThat(filter.getAgent(), is(agentId));
}