@Test
public void moduleNotHaveInstance() {

    List<InstanceInfo> instances = new ArrayList<>();
    given(discoveryClient.getApplication(matches("PES-SERVICE"))).willReturn(application);
    given(application.getInstances()).willReturn(instances);
    boolean moduleHaveInstance = modulesService.moduleHaveInstance("pes");
    Assert.assertFalse(moduleHaveInstance);
}