### Question:
JPDL3Metadata { public List<JPDL3SwimlaneMetadata> getSwimlanes() { return this.swimlanes; } private  JPDL3Metadata(); @SuppressWarnings( {"unchecked", "cast"} ) static JPDL3Metadata instance( InputStream stream ); String getPdName(); void setPdName( String pdName ); JPDL3StartStateMetadata getStartStateMetadata(); JPDL3EndStateMetadata getEndStateMetadata(); void setStartStateMetadata( JPDL3StartStateMetadata jPDL3StartStateMetadata ); void setEndStateMetadata( JPDL3EndStateMetadata jPDL3EndStateMetadata ); List<JPDL3SwimlaneMetadata> getSwimlanes(); void setSwimlanes( List<JPDL3SwimlaneMetadata> swimlanes ); List<JPDL3TaskNodeMetadata> getTaskNodes(); void setTaskNodes( List<JPDL3TaskNodeMetadata> taskNodes );  }### Answer:
@Test public void shouldHaveOneOrMoreSwimlaneNode() { List<JPDL3SwimlaneMetadata> swimlanes = metadata.getSwimlanes(); assertThat(swimlanes.isEmpty(), is(false)); for (JPDL3SwimlaneMetadata swimlane : swimlanes) { if (swimlane.getName().equals("SL1")) { assertThat(swimlane.getAssignment(), is(notNullValue())); assertThat(swimlane.getAssignment().getFqClassName(), is("com.sample.assigned.Task1Handler")); assertThat(swimlane.getAssignment().getConfigType(), is("constructor")); } else if (swimlane.getName().equals("SL2")) { assertThat(swimlane.getAssignment(), is(notNullValue())); assertNotNull(swimlane.getAssignment()); assertThat(swimlane.getAssignment().getFqClassName(), is("com.sample.assigned.Task2Handler")); } else if (swimlane.getName().equals("SL3")) { assertThat(swimlane.getAssignment(), is(notNullValue())); assertThat(swimlane.getAssignment().getFqClassName(), is("org.jbpm.identity.assignment.ExpressionAssignmentHandler")); assertThat(swimlane.getAssignment().getExpression(), is("<expression>group(group1)</expression>")); } else if (swimlane.getName().equals("SL4")) { assertThat(swimlane.getAssignment(), is(nullValue())); assertThat(swimlane.getActorIdExpression(), is("bobthebuilder")); } else if (swimlane.getName().equals("SL5")) { assertThat(swimlane.getAssignment(), is(nullValue())); assertThat(swimlane.getPooledActorsExpression(), is("hippies,hells angles")); } } }