public class BindingConfigParserTest {
@Test
public void testParseConfigFullFilled() throws BindingConfigParseException {
BindingConfigParser<EnoceanBindingConfig> parser = new BindingConfigParser<EnoceanBindingConfig>();
EnoceanBindingConfig config = new EnoceanGenericBindingProvider().new EnoceanBindingConfig();
parser.parse("{id=00:8B:62:43, eep=F6:02:01, channel=B, parameter=I_PRESSED}", config);
assertEquals("id", "00:8B:62:43", config.id);
assertEquals("eep", "F6:02:01", config.eep);
assertEquals("channel", "B", config.channel);
assertEquals("parameter", "I_PRESSED", config.parameter);