@Test
public void shouldHaveJustSevenMethodsInPublicApi() {

  // given
  Class<? extends ReactiveNetwork> clazz = ReactiveNetwork.create().getClass();
  final int predefinedNumberOfMethods = 9;
  final int publicMethodsInApi = 7; // this number can be increased only in reasonable case
  // when
  Method[] methods = clazz.getMethods();
  // then
  assertThat(methods.length).isEqualTo(predefinedNumberOfMethods + publicMethodsInApi);
}