### Question:
MonitorLabelSpecification implements MonitorSpecification { public boolean isSatisfiedBy(Monitor monitor) { return label.equals(monitor.getLabel()); } MonitorLabelSpecification(String label); boolean isSatisfiedBy(Monitor monitor);  }### Answer:
@Test public void shouldBeSatisfiedIfLabelIsSame() { specification = new MonitorLabelSpecification("mon1"); assertThat(specification.isSatisfiedBy(new TestMonitor("mon1")), is(true)); assertThat(specification.isSatisfiedBy(new TestMonitor("Mon1")), is(false)); assertThat(specification.isSatisfiedBy(new TestMonitor("mon2")), is(false)); }