Dddb { public BandDescriptor findBandDescriptorForMember(String formatName, String memberName) { final Family<BandDescriptor> descriptors = getBandDescriptors(formatName); if (descriptors != null) { for (final BandDescriptor descriptor : descriptors.asList()) { if (descriptor.getMemberName().equals(memberName)) { return descriptor; } } } return null; } private  Dddb(); static Dddb getInstance(); DataFormat getDataFormat(File hdrFile); BandDescriptor findBandDescriptorForMember(String formatName, String memberName); Family<BandDescriptor> getBandDescriptors(String formatName); Family<FlagDescriptor> getFlagDescriptors(String identifier); Family<MemberDescriptor> getMemberDescriptors(File hdrFile);  }
@Test public void testFindBandDescriptorForMember() { final BandDescriptor descriptor = dddb.findBandDescriptorForMember(DBL_SM_XXXX_MIR_OSUDP2_0300, "Sigma_Tb_42.5Y"); assertNotNull(descriptor); assertEquals("Sigma_TBY", descriptor.getBandName()); }
@Test public void testFindBandDescriptorForMember_unknownFormatName() { assertNull(dddb.findBandDescriptorForMember("schnick-schnack-for-mat", "Sigma_Tb_42.5Y")); }
@Test public void testFindBandDescriptorForMember_unknownBandName() { assertNull(dddb.findBandDescriptorForMember(DBL_SM_XXXX_MIR_OSUDP2_0300, "rubber-band")); }