### Question:
KieContainerStatusFilter { public static KieContainerStatusFilter parseFromNullableString(String inputStr) { if (inputStr == null || inputStr.isEmpty()) { return ACCEPT_ALL; } List<KieContainerStatus> statuses = new ArrayList<KieContainerStatus>(); String[] strStatuses = inputStr.split(","); for (String strStatus : strStatuses) { statuses.add(KieContainerStatus.valueOf(strStatus.toUpperCase())); } return new KieContainerStatusFilter(statuses); } KieContainerStatusFilter();  KieContainerStatusFilter(List<KieContainerStatus> acceptedStatuses);  KieContainerStatusFilter(KieContainerStatus... acceptedStatuses); static KieContainerStatusFilter parseFromNullableString(String inputStr); List<KieContainerStatus> getAcceptedStatuses(); boolean accept(KieContainerStatus status); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final KieContainerStatusFilter ACCEPT_ALL; }### Answer:
@Test public void parseFromNullableStringWithNull() { KieContainerStatusFilter filter = KieContainerStatusFilter.parseFromNullableString(null); Assertions.assertThat(filter).isEqualTo(KieContainerStatusFilter.ACCEPT_ALL); }
@Test public void parseFromNullableStringWithEmptyString() { KieContainerStatusFilter filter = KieContainerStatusFilter.parseFromNullableString(""); Assertions.assertThat(filter).isEqualTo(KieContainerStatusFilter.ACCEPT_ALL); }
@Test public void parseFromNullableStringWithSingleStatus() { KieContainerStatusFilter filter = KieContainerStatusFilter.parseFromNullableString("started"); Assertions.assertThat(filter).isEqualTo(new KieContainerStatusFilter(KieContainerStatus.STARTED)); }
@Test public void parseFromNullableStringWithSingleStatusUppercase() { KieContainerStatusFilter filter = KieContainerStatusFilter.parseFromNullableString("STARTED"); Assertions.assertThat(filter).isEqualTo(new KieContainerStatusFilter(KieContainerStatus.STARTED)); }
@Test public void parseFromNullableStringWithMultipleStatuses() { KieContainerStatusFilter filter = KieContainerStatusFilter.parseFromNullableString("creating,started,failed"); Assertions.assertThat(filter).isEqualTo( new KieContainerStatusFilter(KieContainerStatus.CREATING, KieContainerStatus.STARTED, KieContainerStatus.FAILED)); }