BandDescriptors implements Family<BandDescriptor> { @Override public final List<BandDescriptor> asList() { return Collections.unmodifiableList(descriptorList); } BandDescriptors(List<String[]> recordList, Dddb dddb); @Override final List<BandDescriptor> asList(); @Override final BandDescriptor getMember(String bandName);  }
@Test public void testAsList() { final List<BandDescriptor> descriptorList = bandDescriptors.asList(); assertNotNull(descriptorList); assertEquals(2, descriptorList.size()); assertThat(descriptorList, is(instanceOf(Collections.unmodifiableList(recordList).getClass()))); assertEquals("theBand_1", descriptorList.get(0).getBandName()); }